DUNE: Uniform Navigational Environment  2016.09.0
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.

References day, day_year, hour, minutes, month, seconds, week_day, and year.

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

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