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

Class representing a UTC timestamp.

#include <itimestamp.h>

Inheritance diagram for mdf::UtcTimestamp:
Collaboration diagram for mdf::UtcTimestamp:

Public Member Functions

 UtcTimestamp (uint64_t utc_timestamp)
 Constructor for UtcTimeStamp.
 
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

◆ UtcTimestamp()

mdf::UtcTimestamp::UtcTimestamp ( uint64_t utc_timestamp)
explicit
Parameters
utc_timestampThe UTC timestamp in nanoseconds.

Member Function Documentation

◆ GetDstMin()

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

Implements mdf::ITimestamp.

◆ GetTimeNs()

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

Implements mdf::ITimestamp.

◆ GetTimezoneMin()

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

Implements mdf::ITimestamp.

◆ GetUtcTimeNs()

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

Implements mdf::ITimestamp.


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