Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

Datetime Class Reference

The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time. Integer based time class. More...

#include <numbers.h>

Inheritance diagram for Datetime:

Date Time List of all members.

Public Member Functions

 Datetime (time_t tm)
 Datetime (tm *dt)
 Datetime (char *str, size_t size=0)
 Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)
 Datetime ()
char * getDatetime (char *buffer) const
time_t getDatetime (void) const
bool isValid (void) const
Datetimeoperator= (Datetime datetime)
Datetimeoperator+= (Datetime &datetime)
Datetimeoperator-= (Datetime &datetime)
Datetimeoperator+= (Time &time)
Datetimeoperator-= (Time &time)
int operator== (Datetime &)
int operator!= (Datetime &)
int operator< (Datetime &)
int operator<= (Datetime &)
int operator> (Datetime &)
int operator>= (Datetime &)
bool operator! ()
std::string strftime (const char *format) const

Detailed Description

The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time. Integer based time class.

This is then manipulated in several forms and may be exported as needed.

Author:
Marcelo Dalmas <mad@brasmap.com.br>


Constructor & Destructor Documentation

Datetime::Datetime time_t  tm  ) 
 

Datetime::Datetime tm *  dt  ) 
 

Datetime::Datetime char *  str,
size_t  size = 0
 

Datetime::Datetime int  year,
unsigned  month,
unsigned  day,
int  hour,
int  minute,
int  second
 

Datetime::Datetime  ) 
 


Member Function Documentation

time_t Datetime::getDatetime void   )  const
 

char* Datetime::getDatetime char *  buffer  )  const
 

bool Datetime::isValid void   )  const
 

Reimplemented from Date.

bool Datetime::operator!  ) 
 

Reimplemented from Time.

int Datetime::operator!= Datetime  ) 
 

Datetime& Datetime::operator+= Time time  ) 
 

Datetime& Datetime::operator+= Datetime datetime  ) 
 

Datetime& Datetime::operator-= Time time  ) 
 

Datetime& Datetime::operator-= Datetime datetime  ) 
 

int Datetime::operator< Datetime  ) 
 

int Datetime::operator<= Datetime  ) 
 

Datetime& Datetime::operator= Datetime  datetime  ) 
 

int Datetime::operator== Datetime  ) 
 

int Datetime::operator> Datetime  ) 
 

int Datetime::operator>= Datetime  ) 
 

std::string Datetime::strftime const char *  format  )  const
 


The documentation for this class was generated from the following file:
Generated on Thu Sep 25 13:14:32 2003 for GNU CommonC++ by doxygen 1.3.3