Class representing a timestamp with timezone information.
#include <itimestamp.h>
|
| 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.
|
|
virtual | ~ITimestamp ()=default |
| Virtual destructor for ITimestamp.
|
|
◆ TimezoneTimestamp()
mdf::TimezoneTimestamp::TimezoneTimestamp |
( |
uint64_t | utc_timestamp, |
|
|
int16_t | timezone_offset_min, |
|
|
int16_t | dst_offset_min ) |
- Parameters
-
utc_timestamp | The UTC timestamp in nanoseconds. |
timezone_offset_min | The timezone offset in minutes. |
dst_offset_min | The daylight saving time offset in minutes. |
◆ GetDstMin()
int16_t mdf::TimezoneTimestamp::GetDstMin |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetTimeNs()
uint64_t mdf::TimezoneTimestamp::GetTimeNs |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetTimezoneMin()
int16_t mdf::TimezoneTimestamp::GetTimezoneMin |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetUtcTimeNs()
uint64_t mdf::TimezoneTimestamp::GetUtcTimeNs |
( |
| ) |
const |
|
nodiscardoverridevirtual |
The documentation for this class was generated from the following file: