mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 05:49:55 +00:00
Script to check if the countdown is over
This commit is contained in:
parent
941b611ba0
commit
a2caa4d626
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue