class Date

Public Class Methods

on(unix_time) click to toggle source
# File lib/radar/app/core_ext/date.rb, line 8
def self.on(unix_time)
  Time.at(unix_time).utc.to_date
end

Public Instance Methods

to_i() click to toggle source
# File lib/radar/app/core_ext/date.rb, line 4
def to_i
  to_utc_time.to_i
end
to_utc_time() click to toggle source
# File lib/radar/app/core_ext/date.rb, line 12
def to_utc_time
  Time.utc(year, month, day)
end