Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - maketime(<c time string>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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.

See Also: ISTSTIME() TIMESTR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson