Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/date.rb

Overview

Date code pulled from: Ruby Cookbook by Lucas Carlson and Leonard Richardson Published by O’Reilly ISBN: 0-596-52369-6

Instance Method Summary collapse

Instance Method Details

#feed_utils_to_gm_timeObject



6
7
8
# File 'lib/core_ext/date.rb', line 6

def feed_utils_to_gm_time
  feed_utils_to_time(new_offset, :gm)
end

#feed_utils_to_local_timeObject



10
11
12
# File 'lib/core_ext/date.rb', line 10

def feed_utils_to_local_time
  feed_utils_to_time(new_offset(DateTime.now.offset-offset), :local)
end