The DODS Date/Time class is used to represent and compute with combined date and time values
The DODS Date/Time class is used to represent and compute with combined date and time values.
DODS_Date_Time(DODS_Date d, DODS_Time t)
t - A DODS\_Time object. DODS_Date_Time(String date_time)
DODS_Date_Time(BaseType *date_time)
DODS_Date_Time(int y, int m, int d, int hh, int mm = 0, double ss = 0.0, bool gmt = false)
m - The month, 1 is January, ..., 12 is December.
d - The day.
hh - The hour, 0...23.
mm - The minute, 0...59.
ss - The seconds, 0.0, ..., 59.999...
gmt - True if the time is a GMT time, false otherwise. DODS_Date_Time(int y, int yd, int hh, int mm = 0, double ss = 0.0, bool gmt = false)
yd - The year-day, 1 is 1 January, 365/366 is 31 December.
hh - The hour, 0...23.
mm - The minute, 0...59.
ss - The seconds, 0.0, ..., 59.999...
gmt - True if the time is a GMT time, false otherwise.
void set(String date_time)
void set(BaseType *date_time)
void set(int y, int m, int d, int hh, int mm = 0, double ss = 0.0, bool gmt = false)
m - The month, 1 is January, ..., 12 is December.
d - The day.
hh - The hour, 0...23.
mm - The minute, 0...59.
ss - The seconds, 0.0, ..., 59.999...
gmt - True if the time is a GMT time, false otherwise. void set(int y, int yd, int hh, int mm = 0, double ss = 0.0, bool gmt = false)
yd - The year-day, 1 is 1 January, 365/366 is 31 December.
hh - The hour, 0...23.
mm - The minute, 0...59.
ss - The seconds, 0.0, ..., 59.999...
gmt - True if the time is a GMT time, false otherwise.
int month() const
int day() const
int day_number() const
int hours() const
int minutes() const
double seconds() const
bool gmt() const
String get(date_format format = ymd, bool gmt = true) const
gmt - Append the GMT suffix to GMT times.
double julian_day() const
time_t unix_time() const
time.h
mktime(3)
friend int operator!=(DODS_Date_Time &t1, DODS_Date_Time &t2)
friend int operator<(DODS_Date_Time &t1, DODS_Date_Time &t2)
friend int operator>(DODS_Date_Time &t1, DODS_Date_Time &t2)
friend int operator<=(DODS_Date_Time &t1, DODS_Date_Time &t2)
friend int operator>=(DODS_Date_Time &t1, DODS_Date_Time &t2)
void set_epsilon(double eps)
bool OK() const
alphabetic index hierarchy of classes
generated by doc++