Class representing a local timestamp, with timezone and DST offset.
#include <itimestamp.h>
|
| 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.
|
|
virtual | ~ITimestamp ()=default |
| Virtual destructor for ITimestamp.
|
|
◆ LocalTimestamp()
mdf::LocalTimestamp::LocalTimestamp |
( |
uint64_t | local_timestamp | ) |
|
|
explicit |
- Parameters
-
local_timestamp | The local timestamp in nanoseconds, with timezone and DST offset. |
◆ GetDstMin()
int16_t mdf::LocalTimestamp::GetDstMin |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetTimeNs()
uint64_t mdf::LocalTimestamp::GetTimeNs |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetTimezoneMin()
int16_t mdf::LocalTimestamp::GetTimezoneMin |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ GetUtcTimeNs()
uint64_t mdf::LocalTimestamp::GetUtcTimeNs |
( |
| ) |
const |
|
nodiscardoverridevirtual |
The documentation for this class was generated from the following file: