44 m_days = end.
day() - begin.
day();
64 auto year = begin.
year() + period.
years();
70 auto day = begin.
day() + period.
days();
DateTime CPP_UTILITIES_EXPORT operator+(DateTime begin, Period period)
Adds the specified period to the specified date.
Period(const DateTime &begin, const DateTime &end)
Constructs a new Period defined by a start DateTime and an end DateTime.
int year() const
Returns the year component of the date represented by this instance.
static int daysInMonth(int year, int month)
Returns the number of days in the specified month and year.
Represents an instant in time, typically expressed as a date and time of day.
Contains classes providing a means for handling date and time information.
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.
int day() const
Returns the day component of the date represented by this instance.
Represents a period of time.
int days() const
Returns the days component of the period represented by the current instance.
int month() const
Returns the month component of the date represented by this instance.
int years() const
Returns the years component of the period represented by the current instance.
int months() const
Returns the months component of the period represented by the current instance.