This is an inbuilt function function provided by PPWIZARD.
This function is passed a 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

Saturday May 28 2022 at 2:55pm