DUNE: Uniform Navigational Environment
2020.01.0
|
Representation of time/date in a broken down fashion.
Public Member Functions | |
BrokenDown (void) | |
BrokenDown (time_t value, bool utc=true) | |
void | convert (time_t value, bool utc=true) |
void | convert (bool utc=true) |
Public Attributes | |
unsigned | seconds |
unsigned | minutes |
unsigned | hour |
unsigned | day |
unsigned | week_day |
unsigned | month |
unsigned | year |
unsigned | day_year |
|
inline |
Default constructor, initializes object with current time.
References convert().
|
inline |
Initialize object to a given time.
[in] | value | time. |
[in] | utc | true if time is UTC, false is time is localtime. |
References convert().
|
inline |
Convert time to broken down time.
[in] | value | time. |
[in] | utc | true if time is UTC, false is time is localtime. |
Referenced by BrokenDown(), and convert().
|
inline |
Convert current time to broken down time.
[in] | utc | true if time is UTC, false is time is localtime. |
References convert().
unsigned DUNE::Time::BrokenDown::day |
Day of the month.
Referenced by DUNE::Coordinates::WMM::WMM().
unsigned DUNE::Time::BrokenDown::day_year |
Day of the year.
unsigned DUNE::Time::BrokenDown::hour |
Hours since midnight.
unsigned DUNE::Time::BrokenDown::minutes |
Minutes after the hour.
unsigned DUNE::Time::BrokenDown::month |
Months since January.
Referenced by DUNE::Coordinates::WMM::WMM().
unsigned DUNE::Time::BrokenDown::seconds |
Seconds after the minute.
unsigned DUNE::Time::BrokenDown::week_day |
Day of the week.
unsigned DUNE::Time::BrokenDown::year |
Year.
Referenced by DUNE::Coordinates::WMM::WMM().