DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Time::BrokenDown Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

DUNE::Time::BrokenDown::BrokenDown ( void  )
inline

Default constructor, initializes object with current time.

References convert().

DUNE::Time::BrokenDown::BrokenDown ( time_t  value,
bool  utc = true 
)
inline

Initialize object to a given time.

Parameters
[in]valuetime.
[in]utctrue if time is UTC, false is time is localtime.

References convert().

Member Function Documentation

void DUNE::Time::BrokenDown::convert ( time_t  value,
bool  utc = true 
)
inline

Convert time to broken down time.

Parameters
[in]valuetime.
[in]utctrue if time is UTC, false is time is localtime.

Referenced by BrokenDown(), and convert().

void DUNE::Time::BrokenDown::convert ( bool  utc = true)
inline

Convert current time to broken down time.

Parameters
[in]utctrue if time is UTC, false is time is localtime.

References convert().

Member Data Documentation

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().

Collaboration diagram for DUNE::Time::BrokenDown:
Collaboration graph