Script to check if the countdown is over

This commit is contained in:
mshirt 2016-12-12 13:59:30 -06:00
parent 941b611ba0
commit a2caa4d626

View file

@ -128,6 +128,15 @@ module Script
return 0
end
def self.countdown_over
equinox = Time.new(2017, 03, 20)
diff = equinox - Time.now
if(diff <= 0)
return true
end
return false
end
def self.countdown_update
equinox = Time.new(2017, 03, 20)
diff = equinox - Time.now