timing
This commit is contained in:
parent
c42fcc5bcd
commit
6547ef0a08
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue