This simply constrained (value‐semantic) attribute class characterizes a subset of local time values.

Synopsis

Declared in <baltzo_localtimedescriptor.h>

class LocalTimeDescriptor;

Description

See the section for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.

Type Aliases

Name

Description

allocator_type

Allocator type used by this class.

Member Functions

Name

Description

LocalTimeDescriptor [constructor]

Constructors

~LocalTimeDescriptor [destructor]

Destroy this object.

operator=

Assignment operators

allocator

Return get_allocator().mechanism().

description

Return a const reference to the description attribute of this object. Note that description is not canonical, and is intended for debugging only.

dstInEffectFlag

Return the value of the dstInEffectFlag attribute of this object. Note that true implies Daylight‐Saving Time (DST) is in effect.

get_allocator

Return the allocator used by this object to supply memory.

print

Write the value of this object to the specified output stream.

setDescription

Set the description attribute of this object to the specified value. Note that value is not canonical, and is intended for debugging only.

setDstInEffectFlag

Set the dstInEffectFlag attribute of this object to the specified value. Note that true implies Daylight‐Saving Time (DST) is in effect.

setUtcOffsetInSeconds

Set the utcOffsetInSeconds attribute of this object to the specified value. The behavior is undefined unless ‐86399 <= value <= 86399.

swap

Efficiently exchange the value of this object with the value of the specified other object.

utcOffsetInSeconds

Return the value of the utcOffsetInSeconds attribute of this object. Note that this value is in the range [‐86399 .. 86399].

operator BloombergLP::bslmf::NestedTraitDeclaration<LocalTimeDescriptor, IsBitwiseMoveable>

Nested trait declaration for bslmf::IsBitwiseMoveable.

Static Member Functions

Name

Description

isValidUtcOffsetInSeconds

Return true if the specified value is in the range [‐86399 .. 86399], and false otherwise.

Friends

Name

Description

BloombergLP::baltzo::swap

Exchange the values of the specified a and b objects.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs objects do not have the same value, and false otherwise.

operator==

Return true if the specified lhs and rhs objects have the same value, and false otherwise.

Created with MrDocs