Posted By: Truth
Military time variable - 04/08/14 19:57
Hi, I use military time format for my game but I need to display it on a panel in time format.
For example the variable is 1600 for 4 o clock and displays in a panel as 1600 but I need to separate the hour from the minute and put a colon in between like this 16:00. I managed to get the hour by dividing the variable by 100 example 'time_day / 100 = hour' but how can I get the minute?
Thanks
For example the variable is 1600 for 4 o clock and displays in a panel as 1600 but I need to separate the hour from the minute and put a colon in between like this 16:00. I managed to get the hour by dividing the variable by 100 example 'time_day / 100 = hour' but how can I get the minute?
Thanks