Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/feedzirra/core_ext/date.rb
Overview
Date code pulled and adapted 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_time ⇒ Object
6 7 8 |
# File 'lib/feedzirra/core_ext/date.rb', line 6 def feed_utils_to_gm_time feed_utils_to_time(new_offset, :gm) end |
#feed_utils_to_local_time ⇒ Object
10 11 12 |
# File 'lib/feedzirra/core_ext/date.rb', line 10 def feed_utils_to_local_time feed_utils_to_time(new_offset(DateTime.now.offset-offset), :local) end |