ost::Date - The Date class uses a julian date representation of the current year, month, and day.
Contents
Constructor & Destructor Documentation
ost::Date::Date(time_ttm)ost::Date::Date(tm*dt)ost::Date::Date(char*str,size_tsize=0)ost::Date::Date(intyear,unsignedmonth,unsignedday)ost::Date::Date()virtualost::Date::~Date()[virtual]
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 dyfet@ostel.com
julian number based date class.
Member Data Documentation
longost::Date::julian[protected]
Member Function Documentation
voidost::Date::fromJulian(char*buf)const[protected]char*ost::Date::getDate(char*buffer)consttime_tost::Date::getDate(tm*buf)consttime_tost::Date::getDate(void)constunsignedost::Date::getDay(void)constunsignedost::Date::getDayOfWeek(void)constunsignedost::Date::getMonth(void)constlongost::Date::getValue(void)constintost::Date::getYear(void)constboolost::Date::isValid(void)constost::Date::operatorlong()const[inline]boolost::Date::operator!()const[inline]intost::Date::operator!=(constDate&date)Stringost::Date::operator()()constDate&ost::Date::operator++()Date&ost::Date::operator+=(constlongval)Date&ost::Date::operator--()Date&ost::Date::operator-=(constlongval)intost::Date::operator<(constDate&date)intost::Date::operator<=(constDate&date)intost::Date::operator==(constDate&date)intost::Date::operator>(constDate&date)intost::Date::operator>=(constDate&date)voidost::Date::setDate(constchar*str,size_tsize=0)voidost::Date::toJulian(longyear,longmonth,longday)[protected]virtualvoidost::Date::update(void)[protected],[virtual]
A method to use to 'post' any changed values when shadowing a mixed object class. This is used by
DateNumber.
Reimplemented in ost::DateNumber.
Name
ost::Date - The Date class uses a julian date representation of the current year, month, and day.
Synopsis
#include <numbers.h>
Inherited by ost::DateNumber, and ost::Datetime.
PublicMemberFunctionsDate (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
operatorlong () const
Stringoperator() () 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
ProtectedMemberFunctions
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.
ProtectedAttributes
long julianFriendsDateoperator+ (const Date &date, const long val)
Dateoperator- (const Date &date, const long val)
Dateoperator+ (const long val, const Date &date)
Dateoperator- (const long val, const Date &date)
