Class: ReeDatetime::SecondsSince
- Inherits:
-
Object
- Object
- ReeDatetime::SecondsSince
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/seconds_since.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil, seconds_count) ⇒ Object
10 11 12 13 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/seconds_since.rb', line 10 def call(date_time = nil, seconds_count) date_time = date_time || DateTime.now date_time + Rational(seconds_count, 86400) end |