Create a TimeTz with the specified local time and UTC offset.
Synopsis
Declared in <bdlt_timetz.h>
TimeTz(
Time const& localTime,
int offset);
Description
Create a TimeTz object whose local time and offset attributes have the specified localTime and offset values respectively. The behavior is undefined unless offset is in the range ( ‐1440 .. 1440 ), and offset is 0 if localTime has the value 24:00:00.000. Note that this method provides no validation, and it is the user's responsibility to ensure that offset represents a valid time zone and that localTime represents a valid time in that time zone.
Parameters
Name |
Description |
localTime |
local time value for the new object |
offset |
time zone offset from UTC in minutes |
Created with MrDocs