The Date class uses a julian date representation of the current year, month, and day.
More...
#include <numbers.h>
Inheritance diagram for Date:
Collaboration diagram for Date:
Public Member Functions
Date (char *str, size_t size=0)
Date (int year, unsigned month, unsigned day)
char *
getDate (char *buffer) const
void
setDate (const char *str, size_t size=0)
Protected Member Functions
void
toJulian (long year, long month, long day)
A method to use to "post" any changed values when shadowing a mixed object class.
More...
Protected Attributes
Friends
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.nosp@m.@ost.nosp@m.el.co.nosp@m.m julian number based date class.
Definition at line 148 of file numbers.h.
Constructor & Destructor Documentation
Date::Date
(
char *
str,
size_t
size = 0
)
Date::Date
(
int
year,
unsigned
month,
unsigned
day
)
virtual Date::~Date
(
)
virtual
Member Function Documentation
void Date::fromJulian
(
char *
buf )
const
protected
char* Date::getDate
(
char *
buffer )
const
time_t Date::getDate
(
void
)
const
time_t Date::getDate
(
tm *
buf )
const
unsigned Date::getDay
(
void
)
const
unsigned Date::getDayOfWeek
(
void
)
const
unsigned Date::getMonth
(
void
)
const
long Date::getValue
(
void
)
const
int Date::getYear
(
void
)
const
bool Date::isValid
(
void
)
const
Date::operator long
(
)
const
inline
bool Date::operator!
(
)
const
inline
String Date::operator()
(
)
const
Date& Date::operator++
(
)
Date& Date::operator+=
(
const long
val )
Date& Date::operator--
(
)
Date& Date::operator-=
(
const long
val )
int Date::operator<
(
const
Date &
date )
int Date::operator<=
(
const
Date &
date )
int Date::operator==
(
const
Date &
date )
int Date::operator>
(
const
Date &
date )
int Date::operator>=
(
const
Date &
date )
void Date::setDate
(
const char *
str,
size_t
size = 0
)
void Date::toJulian
(
long
year,
long
month,
long
day
)
protected
virtual void Date::update
(
void
)
protectedvirtual
A method to use to "post" any changed values when shadowing a mixed object class.
This is used by DateNumber.
Reimplemented in DateNumber.
Friends And Related Function Documentation
Date operator+
(
const long
val,
)
friend
Date operator-
(
const long
val,
)
friend
Field Documentation
long Date::julian
protected
The documentation for this class was generated from the following file: