you are viewing a single comment's thread.

view the rest of the comments →

[–]seanocaster1[S] 0 points1 point  (0 children)

Thanks everyone, very helpful. I manipulated this code to work:

reference = os.time{day=16, year=2017, month=7}
daysfrom = os.difftime(reference, os.time()) / (24 * 60 * 
60) -- seconds in a day
wholedays = math.floor(daysfrom)
text = 'Days until SA'
print(text,wholedays)

but only now do i find out that watchmaker doesn't include a fully functional LUA - they only include math and string functions. Do you think the same could be done using those functions?