validateLocalTime overloads
Declared in <baltzo_timezoneutil.h>
Validate that localTime matches its time-zone data.
static
int
validateLocalTime(
bool* result,
LocalDatetime const& localTime);
» more...
Validate that localTime matches time-zone data for timeZoneId.
static
int
validateLocalTime(
bool* result,
bdlt::DatetimeTz const& localTime,
char const* timeZoneId);
» more...
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | receives whether localTime is consistent with the data |
| localTime | local date-time whose offset is validated |
| timeZoneId | identifier of the time zone used for validation |