convertLocalToUtc overloads
Synopses
Declared in <baltzo_timezoneutil.h>
Convert localTime in timeZoneId to a UTC date‐time.
static
int
convertLocalToUtc(
bdlt::Datetime* result,
bdlt::Datetime const& localTime,
char const* timeZoneId,
DstPolicy::Enum dstPolicy = DstPolicy::e_UNSPECIFIED);
Load a LocalDatetime UTC result; see the primary convertLocalToUtc overload.
static
int
convertLocalToUtc(
LocalDatetime* result,
bdlt::Datetime const& localTime,
char const* timeZoneId,
DstPolicy::Enum dstPolicy = DstPolicy::e_UNSPECIFIED);
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
result |
receives the corresponding UTC date‐time |
localTime |
local date‐time to convert |
timeZoneId |
identifier of the time zone for |
dstPolicy |
daylight‐saving policy for interpreting |
Created with MrDocs