C++ Utilities
4.11.0
Common C++ classes and routines used by my applications 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 } |
Specifies the output format. 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 44 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.
Enumerator | |
---|---|
Normal | the normal form of specifing a time interval: hh:mm:ss |
WithMeasures | measures are used, eg.: 34 d 5 h 10 min 7 s 31 ms |
Definition at line 22 of file timespan.h.