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