Return whether timeValue is a valid packed HHMMSS integer.
Synopsis
Declared in <bdlt_timeutil.h>
static
bool
isValidHHMMSS(int timeValue);
Description
Return true if the specified timeValue is a non‐negative integer that represents a valid six‐digit time value suitable for passing to convertFromHHMMSS, and false otherwise. timeValue is a valid six‐digit time value if, when expressed in decimal notation, it 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, where either 0 <= hour < 24, 0 <= minute < 60, and 0 <= second < 60, or 240000 == timeValue.
Return Value
true if timeValue is a valid HHMMSS encoding
Parameters
Name |
Description |
timeValue |
packed HHMMSS integer to validate |
Created with MrDocs