Create a DateTz with the specified local date and UTC offset.
Synopsis
Declared in <bdlt_datetz.h>
DateTz(
Date const& localDate,
int offset);
Description
Create a DateTz object having a local date value equal to the specified localDate and a time zone offset value from UTC equal to the specified offset (in minutes). The behavior is undefined unless offset is in the range ( ‐1440 .. 1440 ). 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 localDate represents a valid date in that time zone.
Parameters
Name |
Description |
localDate |
local date value for the new object |
offset |
time zone offset from UTC in minutes |
Created with MrDocs