mxmDate Class Reference
[modularMX Runtime Platform Core]

Date class, featuring methods greatly facilitating date handling. More...

#include <mxmDate.h>

Inheritance diagram for mxmDate:

mxmObject List of all members.

Public Types

enum  EDateFormat {
  eEuropean2, eEuropean4, eBritish2, eBritish4,
  eEuropean2Time, eEuropean4Time, eBritish2Time, eBritish4Time
}

Public Member Functions

 mxmDate ()
 mxmDate (int year, int month, int day)
 mxmDate (const mxmDate &date)
 ~mxmDate ()
int year () const
int month () const
int day () const
bool setDate (int year, int month, int day)
bool isLeapYear () const
mxmString toString (EDateFormat format=eEuropean4) const
mxmDateoperator= (const mxmDate &date)
void addDays (int days)
void addMonths (int months)
void addYears (int years)
bool operator== (const mxmDate &date) const
bool operator!= (const mxmDate &date) const
bool operator<= (const mxmDate &date) const
bool operator>= (const mxmDate &date) const
bool operator< (const mxmDate &date) const
bool operator> (const mxmDate &date) const

Static Public Member Functions

static mxmDate currentDate ()

Private Attributes

int m_year
int m_month
int m_day
int m_hour
int m_minute
int m_second
void * StableABIDataExtension

Detailed Description

Date class, featuring methods greatly facilitating date handling.

Author:
[agu] Alexander Gugau


Member Enumeration Documentation

enum mxmDate::EDateFormat
 

Enumerator:
eEuropean2  DD.MM.YY.
eEuropean4  DD.MM.YYYY.
eBritish2  MM/DD/YY.
eBritish4  MM/DD/YYYY.
eEuropean2Time  DD.MM.YY HH:MM:SS.
eEuropean4Time  DD.MM.YYYY HH:MM:SS.
eBritish2Time  MM/DD/YY HH:MM:SS.
eBritish4Time  MM/DD/YYYY HH:MM:SS.


Constructor & Destructor Documentation

mxmDate::mxmDate  ) 
 

default constructor initializes to 01.01.1900

mxmDate::mxmDate int  year,
int  month,
int  day
 

constructor initializes to the given date

mxmDate::mxmDate const mxmDate date  ) 
 

copy constructor

mxmDate::~mxmDate  ) 
 

destructor


Member Function Documentation

void mxmDate::addDays int  days  ) 
 

add days to the date

void mxmDate::addMonths int  months  ) 
 

add months to the date

void mxmDate::addYears int  years  ) 
 

add years to the date

mxmDate mxmDate::currentDate  )  [static]
 

returns the current date

int mxmDate::day  )  const
 

returns the day of the date

bool mxmDate::isLeapYear  )  const
 

returns true if the date is in a leap year

int mxmDate::month  )  const
 

returns the month of the date

mxmDate & mxmDate::operator= const mxmDate date  ) 
 

assignment

bool mxmDate::setDate int  year,
int  month,
int  day
 

sets the date to the given year, month and day returns false if one of the arguments is in an invalid range

mxmString mxmDate::toString EDateFormat  format = eEuropean4  )  const
 

convert the date to a string representation

int mxmDate::year  )  const
 

returns the year of the date


The documentation for this class was generated from the following files:
Generated on Fri Jun 29 17:21:04 2007 for MxPEG SDK by  doxygen 1.4.6