Return whether localDate and offset form a valid DateTz.
Synopsis
Declared in <bdlt_datetz.h>
static
bool
isValid(
Date const& localDate,
int offset);
Description
Return true if the specified localDate and the specified time zone offset represent a valid DateTz value, and false otherwise. A localDate and offset represent a valid DateTz value if offset is in the range ( ‐1440 .. 1440 ). Note that a true result from this function does not guarantee that offset corresponds to any geographical or historical time zone. Also note that a true result from this function does not guarantee that localDate itself is a valid Date object.
Return Value
true if localDate and offset form a valid DateTz, and false otherwise
Parameters
Name |
Description |
localDate |
local date to validate |
offset |
time zone offset from UTC in minutes |
Created with MrDocs