This value‐semantic class describes a time value in a particular time zone, which is indicated using an offset from UTC (in minutes).
Synopsis
Declared in <bdlt_timetz.h>
class TimeTz;
Description
The offset is available via the offset method, and is defined by the relationship: localTime() ‐ offset() == utcTime. The time and offset values are logically assumed to correspond to geographically valid values, however, this constraint is not enforced.
This class: * supports a complete set of value‐semantic operations * supports BDEX streaming For terminology see bsldoc_glossary.
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign to this object the value of the specified |
|
Assign to this object the value read from the specified input stream. |
|
Write this object to the specified output stream using BDEX. |
|
Return a |
|
Return the local time attribute of this object. |
|
Return the time zone offset of this object in minutes from UTC. |
|
Write this object to the specified stream in a human‐readable format. |
|
Set this object's local time and time zone offset. |
|
Set this object's time and offset if they form a valid |
|
Return a |
|
Set this object's time and offset if they form a valid |
Static Member Functions
Name |
Description |
Return whether |
|
|
Non-Member Functions
Name |
Description |
Return whether the specified |
|
Return whether the specified |
Created with MrDocs