SYNOPSIS

#include <numbers.h>

Inherited by ost::DateNumber, and ost::Datetime.

Public Member Functions

Date (time_t tm)

Date (tm *dt)

Date (char *str, size_t size=0)

Date (int year, unsigned month, unsigned day)

Date ()

virtual ~Date ()

int getYear (void) const

unsigned getMonth (void) const

unsigned getDay (void) const

unsigned getDayOfWeek (void) const

char * getDate (char *buffer) const

time_t getDate (void) const

time_t getDate (tm *buf) const

long getValue (void) const

void setDate (const char *str, size_t size=0)

bool isValid (void) const

operator long () const

String operator() () const

Date & operator++ ()

Date & operator-- ()

Date & operator+= (const long val)

Date & operator-= (const long val)

int operator== (const Date &date)

int operator!= (const Date &date)

int operator< (const Date &date)

int operator<= (const Date &date)

int operator> (const Date &date)

int operator>= (const Date &date)

bool operator! () const

Protected Member Functions

void toJulian (long year, long month, long day)

void fromJulian (char *buf) const

virtual void update (void)

A method to use to 'post' any changed values when shadowing a mixed object class.

Protected Attributes

long julian

Friends

Date operator+ (const Date &date, const long val)

Date operator- (const Date &date, const long val)

Date operator+ (const long val, const Date &date)

Date operator- (const long val, const Date &date)

Detailed Description

The Date class uses a julian date representation of the current year, month, and day.

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

Author:

David Sugar [email protected] julian number based date class.

Constructor & Destructor Documentation

ost::Date::Date (time_ttm)

ost::Date::Date (tm *dt)

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

ost::Date::Date (intyear, unsignedmonth, unsignedday)

ost::Date::Date ()

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

Member Function Documentation

void ost::Date::fromJulian (char *buf) const\fC [protected]\fP

char* ost::Date::getDate (char *buffer) const

time_t ost::Date::getDate (void) const

time_t ost::Date::getDate (tm *buf) const

unsigned ost::Date::getDay (void) const

unsigned ost::Date::getDayOfWeek (void) const

unsigned ost::Date::getMonth (void) const

long ost::Date::getValue (void) const

int ost::Date::getYear (void) const

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

ost::Date::operator long () const\fC [inline]\fP

bool ost::Date::operator! (void) const\fC [inline]\fP

int \fBost::Date::operator!\fP= (const \fBDate\fP &date)

\fBString\fP ost::Date::operator() () const

\fBDate\fP& ost::Date::operator++ ()

\fBDate\fP& ost::Date::operator+= (const longval)

\fBDate\fP& ost::Date::operator-- ()

\fBDate\fP& ost::Date::operator-= (const longval)

int ost::Date::operator< (const \fBDate\fP &date)

int ost::Date::operator<= (const \fBDate\fP &date)

int ost::Date::operator== (const \fBDate\fP &date)

int ost::Date::operator> (const \fBDate\fP &date)

int ost::Date::operator>= (const \fBDate\fP &date)

void ost::Date::setDate (const char *str, size_tsize = \fC0\fP)

void ost::Date::toJulian (longyear, longmonth, longday)\fC [protected]\fP

virtual void ost::Date::update (void)\fC [protected]\fP, \fC [virtual]\fP

A method to use to 'post' any changed values when shadowing a mixed object class. This is used by DateNumber.

Reimplemented in ost::DateNumber.

Friends And Related Function Documentation

\fBDate\fP operator+ (const \fBDate\fP &date, const longval)\fC [friend]\fP

\fBDate\fP operator+ (const longval, const \fBDate\fP &date)\fC [friend]\fP

\fBDate\fP operator- (const \fBDate\fP &date, const longval)\fC [friend]\fP

\fBDate\fP operator- (const longval, const \fBDate\fP &date)\fC [friend]\fP

Member Data Documentation

long ost::Date::julian\fC [protected]\fP

Author

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