DOKK / manpages / debian 10 / libcommoncpp2-doc / ost_Date.3.en
ost::Date(3) Library Functions Manual ost::Date(3)

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

#include <numbers.h>

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


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


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.


long julian


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)

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.

String ost::Date::operator() () const

Date& ost::Date::operator++ ()

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

Date& ost::Date::operator-- ()

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

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

Reimplemented in ost::DateNumber.

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

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

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

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

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

Wed Oct 31 2018 GNU CommonC++