In Liberty BASIC, and maybe in other BASIC language, time$() command will output current time of the system clock in 24 hour format. Code: print time$() 'time now as string "23:59:46" In order to produces output in 12 hour format, we must do manipulating character. We have many ways to do these. I only submit only three. #1. IF THEN If hours smaller than or equal with 12, we set to AM time. Otherwise, we subtract hours with 12 and set to ...
print time$() 'time now as string "23:59:46"