Module: Riveter::CoreExtensions::DateExtensions::ClassMethods
- Defined in:
- lib/riveter/core_extensions.rb
Instance Method Summary collapse
Instance Method Details
#from_utc_ticks(ticks) ⇒ Object
29 30 31 |
# File 'lib/riveter/core_extensions.rb', line 29 def from_utc_ticks(ticks) (DateTime.strptime ticks.to_s, "%Q").to_date end |
#system_start_date ⇒ Object
25 26 27 |
# File 'lib/riveter/core_extensions.rb', line 25 def system_start_date self.new(1970, 1, 1) end |