This value‐semantic type holds Zoneinfo (or "Olson") time‐zone data for a single locale.

Synopsis

Declared in <baltzo_zoneinfo.h>

class Zoneinfo;

Description

This class is a value‐semantic type holding a structured representation of the information contained in an Zoneinfo (or "Olson") time zone database for a single locale (e.g., "America/New_York"). The salient attributes of this type are the string identifier and the ordered sequence of ZoneinfoTransition objects.

Type Aliases

Name

Description

TransitionConstIterator

Alias for a bi‐directional const iterator over the sequence of transitions maintained by a Zoneinfo object.

allocator_type

Allocator type used by this class.

Member Functions

Name

Description

Zoneinfo [constructor]

Constructors

operator=

Assignment operators

addTransition

Add a transition at the specified utcTime with the specified descriptor.

allocator

Return get_allocator().mechanism().

beginTransitions

Return an iterator providing non‐modifiable access to the first transition in the ordered sequence of transitions maintained by this object.

endTransitions

Return an iterator providing non‐modifiable access to one past the last transition in the ordered sequence of transitions associated with this object.

findTransitionForUtcTime

Return an iterator providing non‐modifiable access to the transition that holds the local‐time descriptor associated with the specified utcTime.

firstTransition

Return a reference providing non‐modifiable access to the first transition contained in this object. The behavior is undefined unless numTransitions() > 0.

get_allocator

Return the allocator used by this object to supply memory.

identifier

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

numTransitions

Return the number of transitions maintained by this zone info.

posixExtendedRangeDescription

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

print

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

setIdentifier

setIdentifier overloads

setPosixExtendedRangeDescription

setPosixExtendedRangeDescription overloads

swap

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

operator BloombergLP::bslmf::NestedTraitDeclaration<Zoneinfo, UsesBslmaAllocator>

Nested trait declaration for bslma::UsesBslmaAllocator.

Friends

Name

Description

BloombergLP::baltzo::operator==

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

Non-Member Functions

Name

Description

operator!=

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

swap

Exchange the values of the specified a and b objects.

Created with MrDocs