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