DUNE: Uniform Navigational Environment
2016.09.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 |
|
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 convert().
unsigned DUNE::Time::BrokenDown::day_year |
Day of the year.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::hour |
Hours since midnight.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::minutes |
Minutes after the hour.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::month |
Months since January.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::seconds |
Seconds after the minute.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::week_day |
Day of the week.
Referenced by convert().
unsigned DUNE::Time::BrokenDown::year |
Year.
Referenced by convert().