Script to check if the countdown is over
This commit is contained in:
parent
941b611ba0
commit
a2caa4d626
|
|
@ -128,6 +128,15 @@ module Script
|
||||||
return 0
|
return 0
|
||||||
end
|
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
|
def self.countdown_update
|
||||||
equinox = Time.new(2017, 03, 20)
|
equinox = Time.new(2017, 03, 20)
|
||||||
diff = equinox - Time.now
|
diff = equinox - Time.now
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue