Heads up, seems like this doesn't work on the SDK (all versions)...crashes the program with error in the code screen:
Update error: main.lua:77: attempt to index a nil value (global 'sunmoon')
stack traceback:
main.lua:77: in function 'getTimes'
main.lua:209: in function <main.lua:203>