Dates namespace. More...
Namespaces | |
| namespace | rfc3339 |
| RFC 3339 dates formatting and parsing. | |
Classes | |
| class | Date |
Calendar day (RFC 3339 full-date , JSON schema and OpenAPI date format, XSD xs:date ). More... | |
| struct | DateFields |
| Broken down date and time ( DateTime::fields ): local time or UTC. More... | |
| class | DateFormatter |
| DateTime string formatter and parser More... | |
| class | DateTime |
| Point in time. More... | |
| class | IDatePartFormatter |
| Date and time part formatter interface. More... | |
| class | OffsetTime |
Time of day with an offset from UTC (RFC 3339 full-time , time format of JSON schema and OpenAPI). More... | |
| class | Time |
Time of day (RFC 3339 partial-time , SQL TIME , XSD xs:time without time zone). More... | |
Typedefs | |
| typedef anch::date::IDatePartFormatter *(*) | getInstance() |
Enumerations | |
| enum class | Zone { UTC , LOCAL } |
| Time zone of conversions between days and points in time. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &out, const anch::date::Date &date) |
| std::ostream & | operator<< (std::ostream &out, const anch::date::OffsetTime &time) |
| std::ostream & | operator<< (std::ostream &out, const anch::date::Time &time) |
Dates namespace.
It contains utilities for date and time management.
anch::date::DateTime is based on std::chrono (nanosecond precision) and on localtime_r for local time. anch::date::DateFormatter provides a date parser and formatter with a syntax close to strftime .
| typedef anch::date::IDatePartFormatter *(*) anch::date::getInstance() |
anch::date::IDatePartFormatter instance getter function prototype (the instance is deleted by DateFormatter )
|
strong |
Time zone of conversions between days and points in time.
| Enumerator | |
|---|---|
| UTC | UTC |
| LOCAL | Local time (follows |
| std::ostream & anch::date::operator<< | ( | std::ostream & | out, |
| const anch::date::Date & | date ) |
Write RFC 3339 full-date
| out | the output stream |
| date | the date |
| std::ostream & anch::date::operator<< | ( | std::ostream & | out, |
| const anch::date::OffsetTime & | time ) |
Write RFC 3339 full-time
| out | the output stream |
| time | the time |
| std::ostream & anch::date::operator<< | ( | std::ostream & | out, |
| const anch::date::Time & | time ) |
Write RFC 3339 partial-time
| out | the output stream |
| time | the time |