libiso8601  0.3.14
Data Fields
iso8601_date Struct Reference

Date/time point. More...

Data Fields

int32_t nsec
 Number of nanoseconds elapsed since start of second.
 
int32_t day
 Number of days elapsed since Jan 1, year 0000. May be negative.
 
int32_t sec
 Number of seconds elapsed since start of day.
 

Detailed Description

Date/time point.

This structure contains the details to represent a specific instant on the UTC timescale. It uses Jan 1, year 0000 as the origin (when day will be 0). sec is the number of seconds elapsed since start of day, and nsec is the number of nanoseconds elapsed since the start of the current second.

We correctly deal with leap seconds by encoding 23:59:60 as having a sec field of 86400.