|
C++/Tree Mapping Runtime Library
|
Time zone representation. More...
#include <date-time.hxx>
Constructors | |
| time_zone () | |
| Default constructor. | |
| time_zone (short hours, short minutes) | |
| Initialize an instance with the hours and minutes components. | |
| bool | zone_present () const |
| Determine if time zone is specified. | |
| void | zone_reset () |
| Reset the time zone to the 'not specified' state. | |
| short | zone_hours () const |
| Get the hours component of the time zone. | |
| void | zone_hours (short h) |
| Set the hours component of the time zone. | |
| short | zone_minutes () const |
| Get the minutes component of the time zone. | |
| void | zone_minutes (short m) |
| Set the minutes component of the time zone. | |
Time zone representation.
The time_zone class represents an optional time zone and is used as a base class for date/time types.
The time zone can negative in which case both the hours and minutes components should be negative.
| time_zone | ( | ) |
Default constructor.
This constructor initializes the instance to the 'not specified' state.
| time_zone | ( | short | hours, |
| short | minutes | ||
| ) |
Initialize an instance with the hours and minutes components.
| hours | The time zone hours component. |
| minutes | The time zone minutes component. |
| bool zone_present | ( | ) | const |
Determine if time zone is specified.
| short zone_hours | ( | ) | const |
Get the hours component of the time zone.
| void zone_hours | ( | short | h | ) |
Set the hours component of the time zone.
| h | The new hours component. |
| short zone_minutes | ( | ) | const |
Get the minutes component of the time zone.
| void zone_minutes | ( | short | m | ) |
Set the minutes component of the time zone.
| m | The new minutes component. |