struct mrpt::system::TTimeParts

The parts of a date/time (it’s like the standard ‘tm’ but with fractions of 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

uint8_t month {0}

The year.

uint8_t day {0}

Month (1-12)

uint8_t hour {0}

Day (1-31)

uint8_t minute {0}

Hour (0-23)

double second {0}

Minute (0-59)

uint8_t day_of_week {0}

Seconds (0.0000-59.9999)

int daylight_saving {0}

Day of week (1:Sunday, 7:Saturday)