class Cakeproto::TimeWithZone

Public Instance Methods

to_date() click to toggle source
# File lib/bucket_cake/proto_ext/time_with_zone.rb, line 13
def to_date
  to_local.to_date
end
to_local() click to toggle source
# File lib/bucket_cake/proto_ext/time_with_zone.rb, line 9
def to_local
  to_utc.in_time_zone(timezone_location)
end
to_utc() click to toggle source
# File lib/bucket_cake/proto_ext/time_with_zone.rb, line 5
def to_utc
  Time.at(unix_seconds).utc
end