PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
This is a rexx function provided by
PPWIZARD.
This routine (like all PPWIZARD extensions) can be used with any operating system supported by PPWIZARD.
This function reformats a passed 24 hour time and returns a
12 hour time of the form "HH:MM:SS??" or "HH:MM??".
Note that "HH" never has a leading zero.
The parameters are as follows:
- The Time
This is the 24 hour time in the format
"HHMMSS" (exactly 6 characters) or
"HH:MM:SS" (with or without the seconds).
No validation is performed on the passed values, some valid ones
are "15:59:52", 1:1:1", "155952" and "15:59".
- Want Seconds Returned?
Optional parameter, the value should be 'Y' or 'N'. If the value is not supplied then the seconds value will only be returned if one was passed. - AM/PM Text
This optional parameter defaults to "am;pm" which is the text you want to use to represent am and pm times.
FileDateTime = GetFileTimeStamp(TheFile);
FileTime = GetAmPmTimeFromHhMmSs(substr(FileDateTime, 9))
PPWIZARD Manual

Thursday January 17 2002 at 6:27pm