Code: Select all
|standardtime.inc
|This include will echo a user friendly standardized time instead of military time.
|usage: /call standardtime
Sub standardtime
/declare hours global
/declare newhours global
/varset newhours 0
/varset hours $time(h)
/if n @hours>12 {
/varset newhours $calc(@hours-12)
/varset newhours $int(@newhours)
/echo @newhours:$time(m):$time(s) PM
} ELSE {
/echo $time(h):$time(m):$time(s) AM
}
/return
