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

ost::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 ost::Datetime:

ost::Date ost::Time List of all members.

Public Methods

 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)
time_t getDatetime (void)
bool isValid (void)
Datetime & operator= (Datetime datetime)
Datetime & operator+= (Datetime &datetime)
Datetime & operator-= (Datetime &datetime)
Datetime & operator+= (Time &time)
Datetime & operator-= (Time &time)
std::string strftime (const char *format)

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

ost::Datetime::Datetime time_t    tm
 

ost::Datetime::Datetime tm *    dt
 

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

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

ost::Datetime::Datetime  
 


Member Function Documentation

time_t ost::Datetime::getDatetime void   
 

char* ost::Datetime::getDatetime char *    buffer
 

bool ost::Datetime::isValid void   
 

Reimplemented from ost::Date.

Datetime& ost::Datetime::operator+= Time   time
 

Datetime& ost::Datetime::operator+= Datetime &    datetime
 

Datetime& ost::Datetime::operator-= Time   time
 

Datetime& ost::Datetime::operator-= Datetime &    datetime
 

Datetime& ost::Datetime::operator= Datetime    datetime
 

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


The documentation for this class was generated from the following file:
Generated on Thu Nov 21 12:28:32 2002 for GNU CommonC++ by doxygen1.2.18