BloombergLP::bdlt::TimeUtil::convertFromHHMM

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 four digits (counting leading zeros, if any): two digits for the hour and two digits for the minute. For example, 309 is converted to Time(3, 9) (03:09:00.000). More formally, timeValue is interpreted as: ` hour * 100 + minute ` The behavior is undefined unless timeValue represents a valid time in the allowable range for bdlt::Time (00:00:00.000 - 23:59:00.000, and 24:00:00.000).

Synopsis

Declared in <bdlt_timeutil.h>

static
Time
convertFromHHMM(int timeValue);