Use
$asctime(<time in seconds>, h:nn:ss tt)
If you have the time in a 24 hour format, you can use $duration to turn it into seconds
eg: %time = 23:53:12
$asctime($duration(%time), h:nn:ss tt)
would return 11:53:12 pm
The single h will display 1 rather than 01 for hours (if 1 am or 1 pm)
/help $asctime
/help $duration