class Barabut::DATE
Public Class Methods
format_date(date)
click to toggle source
# File lib/barabut_sms/date.rb, line 11 def self.format_date(date) date.strftime('%Y-%m-%dT%H:%M:%SZ') end
n_hour_from_now(duration)
click to toggle source
# File lib/barabut_sms/date.rb, line 7 def self.n_hour_from_now(duration) format_date(Time.now.utc + duration*60*60) end
now()
click to toggle source
# File lib/barabut_sms/date.rb, line 3 def self.now format_date(Time.now.utc) end