25 int hr = 0,
int min = 0,
int sec = 0);
39 operator Time(
void)
const;
75 void setDate(
int yr,
int mth,
int d,
76 int hr = 0,
int min = 0,
int sec = 0);
86 string getStr(
const string& str)
const;
104 #endif // __XIOS_CDate__
int getSecondOfDay() const
Get the fraction of the current day as a real number between 0 and 1.
int getSecond(void) const
Get the calendar associated to the date.
double getFractionOfYear() const
Get the number of seconds since the beginning of the day.
void setDate(int yr, int mth, int d, int hr=0, int min=0, int sec=0)
const CCalendar & getRelCalendar(void) const
bool operator==(const CDate &date)
bool hasRelCalendar(void) const
Get the number of seconds since the beginning of the year.
void setMinute(int newminute)
static CDate FromString(const StdString &str, const CCalendar &calendar)
CDate & operator=(const CDate &date)
Opérateurs ///.
long long int Time
////////////////////// Déclarations ////////////////////// ///
int getSecondOfYear() const
Get the number of days (expressed as a real number) since the beginning of the year.
string getStr(const string &str) const
int getMinute(void) const
friend StdOStream & operator<<(StdOStream &out, const CDate &date)
bool setRelCalendar(const CCalendar &relCalendar)
const CCalendar * relCalendar
Propriétés privées ///.
void addMonth(int value)
Set the calendar associated to the date.
CDate(void)
Create an empty date associated to the specified calendar.
StdString getStryyyymmdd(void) const
void setHour(int newhour)
void setMonth(int newmonth)
int getYear(void) const
Divers accesseurs ///.
void setYear(int newyear)
Mutateurs ///.
double getDayOfYear() const
Get the fraction of the current year as a real number between 0 and 1.
bool checkDate(void)
Traitements ///.
StdString toString(void) const
Autres ///.
double getFractionOfDay() const
Get the fraction of the current day as a real number between 0 and 1.
void setSecond(int newsecond)
friend StdIStream & operator>>(StdIStream &in, CDate &date)
Return the number of seconds since the time origin fixed when creating the calendar.
~CDate(void)
Destructeur ///.