BloombergLP::bdlt::DatetimeUtil::convertToTm

Return the value of the specified datetime expressed as a bsl::tm.

Synopsis

Declared in <bdlt_datetimeutil.h>

static
std::tm
convertToTm(Datetime const& datetime);

Description

Each field in the result is set to its proper value except tm_isdst, which is set to -1 to indicate that no information on daylight saving time is available. A time value of 24:00:00:00 will be converted to 0:00:00. Note that time zones are irrelevant for this conversion.

Return Value

corresponding bsl::tm value

Parameters

NameDescription
datetimevalue to convert