Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/feedjira/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_timeObject



8
9
10
# File 'lib/feedjira/core_ext/date.rb', line 8

def feed_utils_to_gm_time
  feed_utils_to_time(new_offset, :gm)
end

#feed_utils_to_local_timeObject



12
13
14
# File 'lib/feedjira/core_ext/date.rb', line 12

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