class Date

julian number based date class. More...

Full nameost::Date
Definition#include <numbers.h>
Inherited byDateNumber
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


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.

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

toJulian

[protected]

void  fromJulian (char *buf)

fromJulian

[protected]

void  Update (void)

Update

[protected virtual]

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

 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 ()

Date

int  getYear (void)

getYear

unsigned  getMonth (void)

getMonth

unsigned  getDay (void)

getDay

unsigned  getDayOfWeek (void)

getDayOfWeek

char * getDate (char *buffer)

getDate

time_t  getDate (void)

getDate

long  getValue (void)

getValue

tm * getDate (tm *buf)

getDate

bool  is_ok (void)

is_ok

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

operator+

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

operator-

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

operator+

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

operator-

operator  long ()

long

std::string  operator() ()

operator()

Date&  operator++ ()

operator++

Date&  operator-- ()

operator--

Date&  operator+= (long val)

operator+=

Date&  operator-= (long val)

operator-=

int  operator== (Date &date)

operator==

int  operator!= (Date &date)

operator!=

int  operator< (Date &date)

operator<

int  operator<= (Date &date)

operator<=

int  operator> (Date &date)

operator>

int  operator>= (Date &date)

operator>=

bool  operator! ()

operator!