ost::Date(3) | Library Functions Manual | ost::Date(3) |
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.Public Member Functions¶
Date (time_t tm)
Protected Member Functions¶
void toJulian (long year, long month, long day)
Protected Attributes¶
long julian
Friends¶
Date operator+ (const Date &date, const long val)
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.
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 ()¶
virtual ost::Date::~Date () [virtual]¶
Member Function Documentation¶
void ost::Date::fromJulian (char *buf) const [protected]¶
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 [inline]¶
bool ost::Date::operator! (void) const [inline]¶
int ost::Date::operator!= (const Date &date)¶
String ost::Date::operator() () const¶
Date& ost::Date::operator++ ()¶
Date& ost::Date::operator+= (const longval)¶
Date& ost::Date::operator-- ()¶
Date& ost::Date::operator-= (const longval)¶
int ost::Date::operator< (const Date &date)¶
int ost::Date::operator<= (const Date &date)¶
int ost::Date::operator== (const Date &date)¶
int ost::Date::operator> (const Date &date)¶
int ost::Date::operator>= (const Date &date)¶
void ost::Date::setDate (const char *str, size_tsize = 0)¶
void ost::Date::toJulian (longyear, longmonth, longday) [protected]¶
virtual void ost::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.Friends And Related Function Documentation¶
Date operator+ (const Date &date, const longval) [friend]¶
Date operator+ (const longval, const Date &date) [friend]¶
Date operator- (const Date &date, const longval) [friend]¶
Date operator- (const longval, const Date &date) [friend]¶
Member Data Documentation¶
long ost::Date::julian [protected]¶
Author¶
Generated automatically by Doxygen for GNU CommonC++ from the source code.Sun Dec 29 2013 | GNU CommonC++ |