BloombergLP::bdlt::TimeUtil::convertFromHHMMSS

Return the bdlt::Time value corresponding to the specified timeValue, where timeValue is a non-negative integer that, when expressed in decimal notation, contains exactly six digits (counting leading zeros, if any): two digits for the hour, two digits for the minute, and two digits for the second. For example, 30907 is converted to Time(3, 9, 7) (03:09:07.000). More formally, timeValue is interpreted as: ` hour * 10000 + minute * 100 + second ` The behavior is undefined unless timeValue represents a valid time in the allowable range for bdlt::Time (00:00:00.000 - 23:59:59.000, and 24:00:00.000).

Synopsis

Declared in <bdlt_timeutil.h>

static
Time
convertFromHHMMSS(int timeValue);