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