SYNOPSIS

#include <numbers.h>

Inherits ost::Date, and ost::Time.

Public Member Functions

Datetime (time_t tm)

Datetime (tm *dt)

Datetime (const char *str, size_t size=0)

Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)

Datetime ()

virtual ~Datetime ()

char * getDatetime (char *buffer) const

time_t getDatetime (void) const

bool isValid (void) const

Datetime & operator= (const Datetime datetime)

Datetime & operator+= (const Datetime &datetime)

Datetime & operator-= (const Datetime &datetime)

Datetime & operator+= (const Time &time)

Datetime & operator-= (const Time &time)

int operator== (const Datetime &)

int operator!= (const Datetime &)

int operator< (const Datetime &)

int operator<= (const Datetime &)

int operator> (const Datetime &)

int operator>= (const Datetime &)

bool operator! () const

String strftime (const char *format) const

Additional Inherited Members

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.

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

Author:

Marcelo Dalmas [email protected] Integer based time class.

Constructor & Destructor Documentation

ost::Datetime::Datetime (time_ttm)

ost::Datetime::Datetime (tm *dt)

ost::Datetime::Datetime (const char *str, size_tsize = \fC0\fP)

ost::Datetime::Datetime (intyear, unsignedmonth, unsignedday, inthour, intminute, intsecond)

ost::Datetime::Datetime ()

virtual ost::Datetime::~Datetime ()\fC [virtual]\fP

Member Function Documentation

char* ost::Datetime::getDatetime (char *buffer) const

time_t ost::Datetime::getDatetime (void) const

bool ost::Datetime::isValid (void) const

bool ost::Datetime::operator! () const

int \fBost::Datetime::operator!\fP= (const \fBDatetime\fP &)

\fBDatetime\fP& ost::Datetime::operator+= (const \fBDatetime\fP &datetime)

\fBDatetime\fP& ost::Datetime::operator+= (const \fBTime\fP &time)

\fBDatetime\fP& ost::Datetime::operator-= (const \fBDatetime\fP &datetime)

\fBDatetime\fP& ost::Datetime::operator-= (const \fBTime\fP &time)

int ost::Datetime::operator< (const \fBDatetime\fP &)

int ost::Datetime::operator<= (const \fBDatetime\fP &)

\fBDatetime\fP& ost::Datetime::operator= (const \fBDatetime\fPdatetime)

int ost::Datetime::operator== (const \fBDatetime\fP &)

int ost::Datetime::operator> (const \fBDatetime\fP &)

int ost::Datetime::operator>= (const \fBDatetime\fP &)

\fBString\fP ost::Datetime::strftime (const char *format) const

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.