Struct SolidSyslogTimestamp¶
ClassList > SolidSyslogTimestamp
#include <SolidSyslogTimestamp.h>
struct SolidSyslogTimestamp
{
uint16_t Year;
uint8_t Month;
uint8_t Day;
uint8_t Hour;
uint8_t Minute;
uint8_t Second;
uint32_t Microsecond;
int16_t UtcOffsetMinutes;
};
Detailed Description¶
Broken-down timestamp as emitted by a SolidSyslogClockFunction.
All calendar/time fields are expressed in the timezone indicated by UtcOffsetMinutes; the built-in POSIX and Windows clocks both produce UTC (UtcOffsetMinutes == 0).
A clock may leave the struct zeroed to signal "no usable timestamp": the library validates each field before formatting, and a zeroed struct fails validation because Month == 0 is out of range.
Public Attributes Documentation¶
Day¶
1-31.
Hour¶
0-23.
Microsecond¶
0-999999.
Minute¶
0-59.
Month¶
1-12.
Second¶
0-59.
Leap seconds are not represented.
UtcOffsetMinutes¶
Minutes from UTC; 0 for UTC.
Valid -720..840 (UTC-12:00 to UTC+14:00).
Year¶
Gregorian year, e.g.
- Not range-checked; clocks are trusted here.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogTimestamp.h