AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::date::DateFields Struct Reference

Broken down date and time ( DateTime::fields ): local time or UTC. More...

#include <dateTime.hpp>

Collaboration diagram for anch::date::DateFields:

Public Attributes

int32_t year = 1970
uint16_t month = 1
uint16_t day = 1
uint16_t hour = 0
uint16_t minute = 0
uint16_t second = 0
uint16_t millisecond = 0
uint16_t microsecond = 0
uint16_t nanosecond = 0
uint16_t weekday = 4
uint16_t yearday = 1

Detailed Description

Broken down date and time ( DateTime::fields ): local time or UTC.

Since
0.3

Member Data Documentation

◆ day

uint16_t anch::date::DateFields::day = 1

The day of the month (1-31)

◆ hour

uint16_t anch::date::DateFields::hour = 0

The hour (0-23)

◆ microsecond

uint16_t anch::date::DateFields::microsecond = 0

The microsecond (0-999)

◆ millisecond

uint16_t anch::date::DateFields::millisecond = 0

The millisecond (0-999)

◆ minute

uint16_t anch::date::DateFields::minute = 0

The minute (0-59)

◆ month

uint16_t anch::date::DateFields::month = 1

The month (1-12)

◆ nanosecond

uint16_t anch::date::DateFields::nanosecond = 0

The nanosecond (0-999)

◆ second

uint16_t anch::date::DateFields::second = 0

The second (0-60)

◆ weekday

uint16_t anch::date::DateFields::weekday = 4

The day of the week (ISO 8601: 1 is monday, 7 is sunday ; ignored to build a DateTime )

◆ year

int32_t anch::date::DateFields::year = 1970

The year

◆ yearday

uint16_t anch::date::DateFields::yearday = 1

The day of the year (1-366 ; ignored to build a DateTime )


The documentation for this struct was generated from the following file: