This commit is contained in:
nik gaffney 2018-05-11 21:14:40 +02:00
parent c42fcc5bcd
commit 6547ef0a08
1 changed files with 3 additions and 1 deletions

View File

@ -22,11 +22,13 @@ s.boot;
// time of day - see AppClock for scheduling // time of day - see AppClock for scheduling
~now=Date.gmtime; ~now=Date.gmtime;
// dont trust the clock if it's n 1970 (not ntp synced) // dont trust the clock if it's n 1970 (not ntp synced)
if ( ~now.year == 1970, if ( ~now.year == 1970,
{"previously".postln;}, {"previously".postln;},
{"post 1970".postln;} {"post 1970".postln;}
) );
~now.hour.postln; ~now.hour.postln;