Sha256: 7576e784a22d35f82474ba52ebd1a69ba30c11f00630282af03f29a0721100eb
Contents?: true
Size: 503 Bytes
Versions: 22
Compression:
Stored size: 503 Bytes
Contents
# Date code pulled and adapted from: # Ruby Cookbook by Lucas Carlson and Leonard Richardson # Published by O'Reilly # ISBN: 0-596-52369-6 class Date def feed_utils_to_gm_time feed_utils_to_time(new_offset, :gm) end def feed_utils_to_local_time feed_utils_to_time(new_offset(DateTime.now.offset-offset), :local) end private def feed_utils_to_time(dest, method) Time.send(method, dest.year, dest.month, dest.day, dest.hour, dest.min, dest.sec, dest.zone) end end
Version data entries
22 entries across 22 versions & 6 rubygems
Version | Path |
---|---|
feedzirra-0.0.31 | lib/feedzirra/core_ext/date.rb |
feedzirra-0.0.30 | lib/feedzirra/core_ext/date.rb |