I'm working on a script that needs the time in 12 hour format. Is there a way to convert the time from 24 hour to 12 hour?
Thanks!
:global CurrentTime [/system clock get time]
:put "Current time is $CurrentTime"
:if (($CurrentTime - 12:00:00) > 00:00:00) do={:set $CurrentTime ($CurrentTime - 12:00:00) ; :put "Time changed to $CurrentTime"}
:set $CurrentTime 12:00:01
:set $CurrentTime ($CurrentTime+05:00:00)