class GMT
Public Class Methods
gmt_less_1h()
click to toggle source
# File lib/gmt.rb, line 14 def self.gmt_less_1h t = Time.now.gmtime - (60 * 60) t.utc.strftime "%Y%m%d %H:%M" end
gmt_less_48h()
click to toggle source
# File lib/gmt.rb, line 9 def self.gmt_less_48h t = Time.now.gmtime - (2 * 24 * 60 * 60) t.utc.strftime "%Y%m%d %H:%M" end
gmt_now()
click to toggle source
# File lib/gmt.rb, line 4 def self.gmt_now t = Time.now.gmtime t.utc.strftime "%Y%m%d %H:%M" end