MDF Lib 2.2
Interface against MDF 3/4 files
Loading...
Searching...
No Matches
mdf::LocalTimestamp Class Reference

Class representing a local timestamp, with timezone and DST offset.

#include <itimestamp.h>

Inheritance diagram for mdf::LocalTimestamp:
Collaboration diagram for mdf::LocalTimestamp:

Public Member Functions

 LocalTimestamp (uint64_t local_timestamp)
 Constructor for LocalTimeStamp.
 
uint64_t GetTimeNs () const override
 Get the time in nanoseconds.
 
int16_t GetTimezoneMin () const override
 Get the timezone offset in minutes.
 
int16_t GetDstMin () const override
 Get the daylight saving time offset in minutes.
 
uint64_t GetUtcTimeNs () const override
 Get the UTC time in nanoseconds.
 
- Public Member Functions inherited from mdf::ITimestamp
virtual ~ITimestamp ()=default
 Virtual destructor for ITimestamp.
 

Constructor & Destructor Documentation

◆ LocalTimestamp()

mdf::LocalTimestamp::LocalTimestamp ( uint64_t local_timestamp)
explicit
Parameters
local_timestampThe local timestamp in nanoseconds, with timezone and DST offset.

Member Function Documentation

◆ GetDstMin()

int16_t mdf::LocalTimestamp::GetDstMin ( ) const
nodiscardoverridevirtual
Returns
DST offset in minutes.

Implements mdf::ITimestamp.

◆ GetTimeNs()

uint64_t mdf::LocalTimestamp::GetTimeNs ( ) const
nodiscardoverridevirtual
Returns
Time in nanoseconds.

Implements mdf::ITimestamp.

◆ GetTimezoneMin()

int16_t mdf::LocalTimestamp::GetTimezoneMin ( ) const
nodiscardoverridevirtual
Returns
Timezone offset in minutes.

Implements mdf::ITimestamp.

◆ GetUtcTimeNs()

uint64_t mdf::LocalTimestamp::GetUtcTimeNs ( ) const
nodiscardoverridevirtual
Returns
UTC time in nanoseconds.

Implements mdf::ITimestamp.


The documentation for this class was generated from the following file: