This unconstrained (value‐semantic) attribute class characterizes a date‐time with UTC offset and a time‐zone identifier.

Synopsis

Declared in <baltzo_localdatetime.h>

class LocalDatetime;

Description

See the section for information on the class attributes.

Type Aliases

Name

Description

allocator_type

Allocator type used by this class.

Member Functions

Name

Description

LocalDatetime [constructor]

Constructors

~LocalDatetime [destructor]

Destroy this object.

operator=

Assignment operators

allocator

Return get_allocator().mechanism().

bdexStreamIn

Assign to this object the value read from the specified input stream using the specified version format, and return a reference to stream.

bdexStreamOut

Write this object to the specified output stream.

datetimeTz

Return a reference providing non‐modifiable access to the datetimeTz attribute of this object.

get_allocator

Return the allocator used by this object to supply memory.

print

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

setDatetimeTz

Set the datetimeTz attribute of this object to the specified value.

setTimeZoneId

Set the timeZoneId attribute of this object to the specified value. If value is null, it is treated as an empty string.

swap

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

timeZoneId

Return a reference providing non‐modifiable access to the timeZoneId attribute of this object.

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

Nested trait declaration for bslma::UsesBslmaAllocator.

Static Member Functions

Name

Description

maxSupportedBdexVersion

maxSupportedBdexVersion overloads

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