33 #ifndef _dods_date_time_h
34 #define _dods_date_time_h
52 void parse_fractional_time(
string date_time);
86 DODS_Date_Time(
int y,
int m,
int d,
int hh,
int mm = 0,
double ss = 0.0,
113 void set(
string date_time);
119 void set(BaseType *date_time);
130 void set(
int y,
int m,
int d,
int hh,
int mm = 0,
131 double ss = 0.0,
bool gmt =
false);
141 void set(
int y,
int yd,
int hh,
int mm = 0,
double ss = 0.0,
257 #endif // _dods_date_time_h
time_t unix_time() const
Return the number of seconds since 00:00:00 UTC 1 Jan 1970.
friend int operator!=(DODS_Date_Time &t1, DODS_Date_Time &t2)
Inequality.
double get_epsilon() const
Get the value of epsilon used for equality tests of time.
bool OK() const
Class invariant.
friend int operator<(DODS_Date_Time &t1, DODS_Date_Time &t2)
Less-than.
friend int operator>(DODS_Date_Time &t1, DODS_Date_Time &t2)
Greater-than.
void set(DODS_Date d, DODS_Time t)
Set an instance using DODS_Date and DODS_Time objects.
DODS_Date_Time()
Create an empty instance.
void set_epsilon(double eps)
Set the value of epsilon used for equality tests of time.
friend int operator>=(DODS_Date_Time &t1, DODS_Date_Time &t2)
Greater-than or Equal-to.
date_format
Constants used to denote different supported date formats.
The DODS Date/Time class is used to represent and compute with combined date and time values...
friend int operator<=(DODS_Date_Time &t1, DODS_Date_Time &t2)
Less-than or Equal-to.
friend int operator==(DODS_Date_Time &t1, DODS_Date_Time &t2)
Equality.
double julian_day() const