Set this object from localDatetime and offset if they are valid.
Declared in <bdlt_datetimetz.h>
int
setDatetimeTzIfValid(
Datetime const& localDatetime,
int offset);
If the specified localDatetime and offset represent a valid DatetimeTz value (see isValid), set the local datetime and the time zone offset of this object to the localDatetime and offset values respectively and return 0, leave this object unmodified and return a non-zero value otherwise.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| localDatetime | local datetime value |
| offset | time zone offset from UTC in minutes |