The DODS Date object
The DODS Date object. This provides a way to translate between local representations of dates and the DODS standard representation(s). The DODS\_Date object provides constructors, accessors and comparison operations; DODS servers which support the DODS standard representation of dates must implement CE functions that make use of this object.
DODS_Date(String date_str)
DODS_Date(BaseType *arg)
DODS_Date(int year, int day_num)
day_num - The day-number, 1 Jan is day 1. DODS_Date(int year, int month, int day)
month - The month of the year; 1 == January, ..., 12 == December.
day - The day of the month; 1, ..., \{31, 30, 29, 28\}.
void set(BaseType *arg)
void set(int year, int day_number)
void set(int year, int month, int day)
int year() const
int month() const
int day() const
int day_number() const
long julian_day() const
time_t unix_time() const
time.h
mktime(3)
friend int operator!=(DODS_Date &d1, DODS_Date &d2)
friend int operator<(DODS_Date &d1, DODS_Date &d2)
friend int operator>(DODS_Date &d1, DODS_Date &d2)
friend int operator<=(DODS_Date &d1, DODS_Date &d2)
friend int operator>=(DODS_Date &d1, DODS_Date &d2)
alphabetic index hierarchy of classes
generated by doc++