Create a LocalTimeDescriptor object having the specified utcOffsetInSeconds, dstInEffectFlag, and description attribute values.
Declared in <baltzo_localtimedescriptor.h>
LocalTimeDescriptor(
int utcOffsetInSeconds,
bool dstInEffectFlag,
std::string_view const& description,
allocator_type const& allocator = allocator_type());
Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless -86339 <= utcOffsetInSeconds <= 86399.
| Name | Description |
|---|---|
| utcOffsetInSeconds | signed offset from UTC in seconds |
| dstInEffectFlag | true if Daylight-Saving Time is in effect |
| description | non-canonical identifier for this descriptor |
| allocator | the allocator used to supply memory |