MAKETIME(<C time string>)
Makes an invalid time string valid.
Returns <expC> time string valid in format and contents.

<expC> time string is in the format "HH:MM:SS",
the same as returned by the TIME() function.

Valid times are in the range "00:00:00" to "23:59:59",
or 12:00:00 a.m. (midnight) to 11:59:59 p.m. (one second before midnight).

Takes a "best guess" in cases where the valid time is not obvious.

* User-entry time string may be invalid
m_timestr = " : : "
@...SAY "Enter time as time string:";
GET m_timestr PICTURE "##:##:##"
READ

* Make into valid time
IF .NOT. ISTSTIME(m_timestr)
m_timestr = MAKETIME(m_timestr)
ENDIF


Placed in the Public Domain by Tom Rettig Assoc.