Represents an instant in time, typically expressed as a date and time of day.
int day() const
Returns the day component of the date represented by this instance.
int month() const
Returns the month component of the date represented by this instance.
static DateTime fromDate(int year=1, int month=1, int day=1)
Constructs a DateTime to the specified year, month, and day.
constexpr TimeSpan timeOfDay() const
Returns the time of day as TimeSpan for this instance.
static int daysInMonth(int year, int month)
Returns the number of days in the specified month and year.
int year() const
Returns the year component of the date represented by this instance.
Represents a period of time.
Contains all utilities provides by the c++utilities library.
CPP_UTILITIES_EXPORT DateTime operator+(DateTime begin, Period period)
Adds the specified period to the specified date.
IntegralType stringToNumber(const StringType &string, BaseType base=10)
Converts the given string to an unsigned/signed number assuming string uses the specified base.