I am sure someone will come up with a better example, but for now if you want to extract the current time and convert the 24 hour clock to 12 hour clock then I think I did it correctly.. If not let me know.. Thanks
Code: MODE 8 REPEAT t$= RIGHT$(TIME$,8) h$= LEFT$(t$,2) m$= MID$(t$,4,2) s$= RIGHT$(t$,2) LET std%=VAL(h$) CASE std% OF WHEN 13 :h$="01" WHEN 14 :h$="02" WHEN 15:h$="03" WHEN 16:h$="04" WHEN 17:h$="05" WHEN 18:h$="06" WHEN 19:h$="07" WHEN 20:h$="08" WHEN 21:h$="09" WHEN 22:h$="10" WHEN 23:h$="11" WHEN 00:h$="12" ENDCASE PRINT h$+":"+m$+":"+s$ WAIT 10 CLS UNTIL FALSE END