AmPm$

Takes one parameter

Description:

Format a time in 12 or 24 hour format, into a 12 hour time. The input may optionally have a leading date, which will be ignored.

Example:

AmPm$ "15:35:01"

Output is "03:35:01 pm"