Return whether timeValue is a valid packed HHMMSSmmm integer.
Synopsis
Declared in <bdlt_timeutil.h>
static
bool
isValidHHMMSSmmm(int timeValue);
Description
Return true if the specified timeValue is a non‐negative integer that represents a valid nine‐digit time value suitable for passing to convertFromHHMMSSmmm, and false otherwise. timeValue is a valid nine‐digit time value if, when expressed in decimal notation, it contains exactly nine digits (counting leading zeros, if any): two digits for the hour, two digits for the minute, two digits for the second, and three digits for the millisecond, where either 0 <= hour < 24, 0 <= minute < 60, 0 <= second < 60, and 0 <= millisecond < 1000, or 240000000 == timeValue.
Return Value
true if timeValue is a valid HHMMSSmmm encoding
Parameters
Name |
Description |
timeValue |
packed HHMMSSmmm integer to validate |
Created with MrDocs