Set the callback used to retrieve the local time offset.
Synopsis
Declared in <bdlt_localtimeoffset.h>
static
LocalTimeOffset::LocalTimeOffsetCallback
setLocalTimeOffsetCallback(LocalTimeOffsetCallback callback);
Description
Set the specified callback as the function to be used to return a bsls::TimeInterval value representing the difference between local time and UTC time at a specified UTC date and time. Return the previously installed LocalTimeOffsetCallback function. The behavior is undefined unless 0 != callback.
Return Value
the previously installed LocalTimeOffsetCallback function
Parameters
Name |
Description |
callback |
function used to retrieve the local time offset |
Created with MrDocs