C++ Utilities
4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Contains classes providing a means for handling date and time information. More...
Classes | |
class | DateTime |
Represents an instant in time, typically expressed as a date and time of day. More... | |
class | Period |
Represents a period of time. More... | |
class | TimeSpan |
Represents a time interval. More... | |
Enumerations | |
enum | DateTimeOutputFormat { DateTimeOutputFormat::DateAndTime, DateTimeOutputFormat::DateOnly, DateTimeOutputFormat::TimeOnly, DateTimeOutputFormat::DateTimeAndWeekday, DateTimeOutputFormat::DateTimeAndShortWeekday } |
Specifies the output format. More... | |
enum | DayOfWeek { DayOfWeek::Monday, DayOfWeek::Tuesday, DayOfWeek::Wednesday, DayOfWeek::Thursday, DayOfWeek::Friday, DayOfWeek::Saturday, DayOfWeek::Sunday } |
Specifies the day of the week. More... | |
enum | DatePart { DatePart::Year, DatePart::Month, DatePart::DayOfYear, DatePart::Day } |
Specifies the date part. More... | |
enum | TimeSpanOutputFormat { TimeSpanOutputFormat::Normal, TimeSpanOutputFormat::WithMeasures, TimeSpanOutputFormat::TotalSeconds } |
Specifies the output format. More... | |
Functions | |
DateTime CPP_UTILITIES_EXPORT | operator+ (DateTime begin, Period period) |
Adds the specified period to the specified date. More... | |
Contains classes providing a means for handling date and time information.
|
strong |
Specifies the date part.
Enumerator | |
---|---|
Year | year |
Month | month |
DayOfYear | day of year |
Day | day |
Definition at line 45 of file datetime.h.
|
strong |
Specifies the output format.
Enumerator | |
---|---|
DateAndTime | date and time |
DateOnly | date only |
TimeOnly | time only |
DateTimeAndWeekday | date with weekday and time |
DateTimeAndShortWeekday | date with abbreviated weekday and time |
Definition at line 18 of file datetime.h.
|
strong |
Specifies the day of the week.
Enumerator | |
---|---|
Monday | Monday |
Tuesday | Tuesday |
Wednesday | Wednesday |
Thursday | Thursday |
Friday | Friday |
Saturday | Saturday |
Sunday | Sunday |
Definition at line 30 of file datetime.h.
|
strong |
Specifies the output format.
Definition at line 22 of file timespan.h.
Adds the specified period to the specified date.
Might | throw ConversionException if resulting DateTime would be out-of-range. |
Definition at line 62 of file period.cpp.