struct mrpt::system::TTimeParts¶
The parts of a date/time, like the standard tm
but with fractional (double
) seconds.
See also:
TTimeStamp, timestampToParts, buildTimestampFromParts
#include <mrpt/system/datetime.h> struct TTimeParts { // fields uint16_t year {0}; uint8_t month {0}; uint8_t day {0}; uint8_t hour {0}; uint8_t minute {0}; double second {0}; uint8_t day_of_week {0}; int daylight_saving {0}; };
Fields¶
uint16_t year {0}
The year (e.g.
uint8_t month {0}
Month (1-12)
uint8_t day {0}
Day (1-31)
uint8_t hour {0}
Hour (0-23)
uint8_t minute {0}
Minute (0-59)
double second {0}
Seconds (0.0000-59.9999)
uint8_t day_of_week {0}
Day of week (1:Sunday, 7:Saturday)