The Date class uses a julian date representation of the current year, month, and day.
More...
#include <numbers.h>
|
| 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. More...
|
| |
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.
| Date::Date |
( |
char * |
str, |
|
|
size_t |
size = 0 |
|
) |
| |
| Date::Date |
( |
int |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day |
|
) |
| |
| 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.
| 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 |
The documentation for this class was generated from the following file: