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

Class representing a timestamp with timezone information.

#include <itimestamp.h>

Inheritance diagram for mdf::TimezoneTimestamp:
Collaboration diagram for mdf::TimezoneTimestamp:

Public Member Functions

 TimezoneTimestamp (uint64_t utc_timestamp, int16_t timezone_offset_min, int16_t dst_offset_min)
 Constructor for TimezoneTimeStamp.
 
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

◆ TimezoneTimestamp()

mdf::TimezoneTimestamp::TimezoneTimestamp ( uint64_t utc_timestamp,
int16_t timezone_offset_min,
int16_t dst_offset_min )
Parameters
utc_timestampThe UTC timestamp in nanoseconds.
timezone_offset_minThe timezone offset in minutes.
dst_offset_minThe daylight saving time offset in minutes.

Member Function Documentation

◆ GetDstMin()

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

Implements mdf::ITimestamp.

◆ GetTimeNs()

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

Implements mdf::ITimestamp.

◆ GetTimezoneMin()

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

Implements mdf::ITimestamp.

◆ GetUtcTimeNs()

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

Implements mdf::ITimestamp.


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