Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Date Class Reference

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

#include <numbers.h>

Inheritance diagram for Date:

DateNumber List of all members.

Public Methods

 Date (time_t tm)
 Date (tm *dt)
 Date (char *str, size_t size=0)
 Date (int year, unsigned month, unsigned day)
 Date ()
int getYear (void)
unsigned getMonth (void)
unsigned getDay (void)
unsigned getDayOfWeek (void)
char* getDate (char *buffer)
time_t getDate (void)
long getValue (void)
tm* getDate (tm *buf)
bool is_ok (void)
 operator long ()
std::string operator() ()
Date& operator++ ()
Date& operator-- ()
Date& operator+= (long val)
Date& operator-= (long val)
int operator== (Date &date)
int operator!= (Date &date)
int operator< (Date &date)
int operator<= (Date &date)
int operator> (Date &date)
int operator>= (Date &date)
bool operator! ()

Protected Methods

void toJulian (long year, long month, long day)
void fromJulian (char *buf)
virtual void Update (void)
 A method to use to "post" any changed values when shadowing a mixed object class. More...


Friends

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

Detailed Description

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

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

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Date::Date ( time_t tm )
 

Date::Date ( tm * dt )
 

Date::Date ( char * str,
size_t size = 0 )
 

Date::Date ( int year,
unsigned month,
unsigned day )
 

Date::Date ( )
 


Member Function Documentation

void Date::Update ( void ) [inline, protected, virtual]
 

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

This is used by DateNumber.

Reimplemented in DateNumber.

void Date::fromJulian ( char * buf ) [protected]
 

tm* Date::getDate ( tm * buf )
 

time_t Date::getDate ( void )
 

char* Date::getDate ( char * buffer )
 

unsigned Date::getDay ( void )
 

unsigned Date::getDayOfWeek ( void )
 

unsigned Date::getMonth ( void )
 

long Date::getValue ( void )
 

int Date::getYear ( void )
 

bool Date::is_ok ( void )
 

Date::operator long ( ) [inline]
 

bool Date::operator! ( void ) [inline]
 

int Date::operator!= ( Date & date )
 

std::string Date::operator() ( void )
 

Date& Date::operator++ ( void )
 

Date& Date::operator+= ( long val )
 

Date& Date::operator-- ( void )
 

Date& Date::operator-= ( long val )
 

int Date::operator< ( Date & date )
 

int Date::operator<= ( Date & date )
 

int Date::operator== ( Date & date )
 

int Date::operator> ( Date & date )
 

int Date::operator>= ( Date & date )
 

void Date::toJulian ( long year,
long month,
long day ) [protected]
 


Friends And Related Function Documentation

Date operator+ ( long val,
Date & date ) [friend]
 

Date operator+ ( Date & date,
long val ) [friend]
 

Date operator- ( long val,
Date & date ) [friend]
 

Date operator- ( Date & date,
long val ) [friend]
 


The documentation for this class was generated from the following file:
Generated at Thu Sep 27 17:41:25 2001 for CommonC++ by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001