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,
179 string get(date_format format = ymd,
bool gmt =
true)
const;
double julian_day() const
friend int operator>=(DODS_Date_Time &t1, DODS_Date_Time &t2)
Greater-than or Equal-to.
string get(date_format format=ymd, bool gmt=true) const
friend int operator==(DODS_Date_Time &t1, DODS_Date_Time &t2)
Equality.
double get_epsilon() const
void set_epsilon(double eps)
void set(DODS_Date d, DODS_Time t)
friend int operator<(DODS_Date_Time &t1, DODS_Date_Time &t2)
Less-than.
friend int operator!=(DODS_Date_Time &t1, DODS_Date_Time &t2)
Inequality.
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)
Greater-than.