@TIMEPARTS
— parses a time
and indicates which parts were specified.
Syntax:
%@TIMEPARTS[
time]
time | the time to examine |
If the time is not a valid time, the return
value is 0
.
If the specified time is valid, then this function returns a bitmapped value:
16 | the time is in 12-hour (AM/PM) format |
8 | the hour was specified |
4 | the minute was specified |
2 | seconds were specified |
1 | fractional seconds were specified |
A valid time will always have the 8 bit set, and either 16 or 4 or both. In other words, a time must include the hour; minutes are required in 24-hour format, but optional in 12-hour format; seconds and fractional seconds are always optional.