...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Overall Index -- Gregorian Index
Temporal Types
Class ptime -- Class time_duration -- Class time_period
Other Topics
Time Iterators -- UTC / Local Time Adjustments
Defines a non-adjusted time system with nano-second resolution and stable calculation properties. This time system uses the Gregorian calendar to implement the date portion of the time representation.
Example | Description |
Time Math | A few simple calculations using ptime and time_durations. |
Print Hours | Retrieve time from clock, use a time_iterator. |
Local to UTC Conversion | Demonstrates a couple different ways to convert a local to UTC time including daylight savings rules. |
Time periods | Some simple examples of intersection and display of time periods. |