BloombergLP::bdlt::TimeUtil

This struct provides a namespace for common non-primitive procedures that operate on Time objects. These methods are alias-safe and exception-neutral.

Synopsis

Declared in <bdlt_timeutil.h>

struct TimeUtil;

Static Member Functions

NameDescription
convertFromHHMM Convert a four-digit HHMM integer to a Time.
convertFromHHMMSS Convert a six-digit HHMMSS integer to a Time.
convertFromHHMMSSmmm Convert a nine-digit HHMMSSmmm integer to a Time.
convertToHHMM Convert a Time to a four-digit HHMM integer.
convertToHHMMSS Convert a Time to a six-digit HHMMSS integer.
convertToHHMMSSmmm Convert a Time to a nine-digit HHMMSSmmm integer.
fromHms Return an optional Time built from the specified clock fields.
isValidHHMM Return whether timeValue is a valid packed HHMM integer.
isValidHHMMSS Return whether timeValue is a valid packed HHMMSS integer.
isValidHHMMSSmmm Return whether timeValue is a valid packed HHMMSSmmm integer.