2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
Date Struct Reference

An absolute time, not for calculation. Date and Time are interchangable. More...

Detailed Description

An absolute time, not for calculation. Date and Time are interchangable.

Public Member Functions

 Date (const Time &time)
 Creates a new date from time (based on the 31.12.1899, like in Excel(TM))
 
 Date (int _day, int _month, int _year, int _hour=0, int _minute=0, int _second=0, int _ms=0)
 Creates a new date.
 
double DOY ()
 Returns the day of year.
 
std::string to_string ()
 Returns a string representing the date.
 
Time ToTime ()
 Converts a date to Time (based on the 31.12.1899, like in Excel(TM)
 

Public Attributes

int day
 Day of Month.
 
int hour
 Hour of day.
 
int minute
 Minute of hour.
 
int month
 Month.
 
int ms
 millisecond of second
 
int second
 Second of minute.
 
int year
 Year.