Code: Select all
init:
$ import time
$ year, month, day, hour, minute, second, dow, doy, dst = time.localtime()
# dow = day of the week (Monday is 0 and Sunday is 6), doy = day of the year, dst = daylight saving time.
$ downames = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
$ todays = downames[(dow%7)]
$ monthnames = ["December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November" ]
$ months = monthnames[(month%12)]Code: Select all
screen timedaymonth:
text "{size=28}[month]/[day]{/size}" xpos 635 ypos 0 A lot of things on my game are based on the weekday, date, hour, etc and it doesn't "refresh"/progress unless you restart your phone.
Does anyone know what can be causing it?
Thanks.

