ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ACE_Date_Time Class Reference

System independent representation of date and time. More...

#include <Date_Time.h>

Public Member Functions

 ACE_Date_Time ()
 Constructor initializes current time/date info.
 
 ACE_Date_Time (const ACE_Time_Value &timevalue)
 Constructor initializes with the given ACE_Time_Value.
 
 ACE_Date_Time (long day, long month=0, long year=0, long hour=0, long minute=0, long second=0, long microsec=0, long wday=0)
 
void update ()
 Update to the current time/date.
 
void update (const ACE_Time_Value &timevalue)
 Update to the given ACE_Time_Value.
 
long day () const
 Get day.
 
void day (long day)
 Set day.
 
long month () const
 Get month.
 
void month (long month)
 Set month.
 
long year () const
 Get year.
 
void year (long year)
 Set year.
 
long hour () const
 Get hour.
 
void hour (long hour)
 Set hour.
 
long minute () const
 Get minute.
 
void minute (long minute)
 Set minute.
 
long second () const
 Get second.
 
void second (long second)
 Set second.
 
long microsec () const
 Get microsec.
 
void microsec (long microsec)
 Set microsec.
 
long weekday () const
 Get weekday.
 
void weekday (long wday)
 Set weekday.
 

Private Attributes

long day_
 
long month_
 
long year_
 
long hour_
 
long minute_
 
long second_
 
long microsec_
 
long wday_
 

Detailed Description

System independent representation of date and time.

Constructor & Destructor Documentation

◆ ACE_Date_Time() [1/3]

ACE_Date_Time::ACE_Date_Time ( )
inline

Constructor initializes current time/date info.

◆ ACE_Date_Time() [2/3]

ACE_Date_Time::ACE_Date_Time ( const ACE_Time_Value & timevalue)
inlineexplicit

Constructor initializes with the given ACE_Time_Value.

◆ ACE_Date_Time() [3/3]

ACE_Date_Time::ACE_Date_Time ( long day,
long month = 0,
long year = 0,
long hour = 0,
long minute = 0,
long second = 0,
long microsec = 0,
long wday = 0 )
inline

Constructor with init values, no check for validity Set/get portions of ACE_Date_Time, no check for validity.

Member Function Documentation

◆ day() [1/2]

long ACE_Date_Time::day ( ) const
inline

Get day.

◆ day() [2/2]

void ACE_Date_Time::day ( long day)
inline

Set day.

◆ hour() [1/2]

long ACE_Date_Time::hour ( ) const
inline

Get hour.

◆ hour() [2/2]

void ACE_Date_Time::hour ( long hour)
inline

Set hour.

◆ microsec() [1/2]

long ACE_Date_Time::microsec ( ) const
inline

Get microsec.

◆ microsec() [2/2]

void ACE_Date_Time::microsec ( long microsec)
inline

Set microsec.

◆ minute() [1/2]

long ACE_Date_Time::minute ( ) const
inline

Get minute.

◆ minute() [2/2]

void ACE_Date_Time::minute ( long minute)
inline

Set minute.

◆ month() [1/2]

long ACE_Date_Time::month ( ) const
inline

Get month.

◆ month() [2/2]

void ACE_Date_Time::month ( long month)
inline

Set month.

◆ second() [1/2]

long ACE_Date_Time::second ( ) const
inline

Get second.

◆ second() [2/2]

void ACE_Date_Time::second ( long second)
inline

Set second.

◆ update() [1/2]

void ACE_Date_Time::update ( )
inline

Update to the current time/date.

◆ update() [2/2]

void ACE_Date_Time::update ( const ACE_Time_Value & timevalue)
inline

Update to the given ACE_Time_Value.

◆ weekday() [1/2]

long ACE_Date_Time::weekday ( ) const
inline

Get weekday.

◆ weekday() [2/2]

void ACE_Date_Time::weekday ( long wday)
inline

Set weekday.

◆ year() [1/2]

long ACE_Date_Time::year ( ) const
inline

Get year.

◆ year() [2/2]

void ACE_Date_Time::year ( long year)
inline

Set year.

Member Data Documentation

◆ day_

long ACE_Date_Time::day_
private

◆ hour_

long ACE_Date_Time::hour_
private

◆ microsec_

long ACE_Date_Time::microsec_
private

◆ minute_

long ACE_Date_Time::minute_
private

◆ month_

long ACE_Date_Time::month_
private

◆ second_

long ACE_Date_Time::second_
private

◆ wday_

long ACE_Date_Time::wday_
private

◆ year_

long ACE_Date_Time::year_
private

The documentation for this class was generated from the following files: