Convert a Time to a nine‐digit HHMMSSmmm integer.
Synopsis
Declared in <bdlt_timeutil.h>
static
int
convertToHHMMSSmmm(Time const& value);
Description
Return the non‐negative integer representing the same time as the specified value that, when expressed in decimal notation, 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. For example, Time(3, 9, 7, 56) is converted to 30907056. More formally, this method returns: ` value.hour() * 10000000 + value.minute() * 100000 + value.second() * 1000 + value.millisecond() `
Return Value
packed HHMMSSmmm integer
Parameters
Name |
Description |
value |
time to pack as HHMMSSmmm |
Created with MrDocs