Skip to content

Struct SolidSyslogTimestamp

ClassList > SolidSyslogTimestamp

Broken-down timestamp as emitted by a SolidSyslogClockFunction. More...

  • #include <SolidSyslogTimestamp.h>

Public Attributes

Type Name
uint8_t Day
1-31.
uint8_t Hour
0-23.
uint32_t Microsecond
0-999999.
uint8_t Minute
0-59.
uint8_t Month
1-12.
uint8_t Second
0-59.
int16_t UtcOffsetMinutes
Minutes from UTC; 0 for UTC.
uint16_t Year
Gregorian year, e.g.

Detailed Description

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

variable Day

1-31.

uint8_t SolidSyslogTimestamp::Day;


variable Hour

0-23.

uint8_t SolidSyslogTimestamp::Hour;


variable Microsecond

0-999999.

uint32_t SolidSyslogTimestamp::Microsecond;


variable Minute

0-59.

uint8_t SolidSyslogTimestamp::Minute;


variable Month

1-12.

uint8_t SolidSyslogTimestamp::Month;


variable Second

0-59.

uint8_t SolidSyslogTimestamp::Second;

Leap seconds are not represented.


variable UtcOffsetMinutes

Minutes from UTC; 0 for UTC.

int16_t SolidSyslogTimestamp::UtcOffsetMinutes;

Valid -720..840 (UTC-12:00 to UTC+14:00).


variable Year

Gregorian year, e.g.

uint16_t SolidSyslogTimestamp::Year;

  • Not range-checked; clocks are trusted here.


The documentation for this class was generated from the following file Core/Interface/SolidSyslogTimestamp.h