Class: Daru::Offsets::Second

Inherits:
Tick show all
Defined in:
lib/daru/date_time/offsets.rb

Overview

Create a seconds offset

Examples:

Create a Seconds offset

offset = Daru::Offsets::Second.new(5)
offset + DateTime.new(2012,5,1,4,3)
#=> #<DateTime: 2012-05-01T04:03:05+00:00 ((2456049j,14585s,0n),+0s,2299161j)>

Constant Summary collapse

FREQ =
'S'.freeze

Instance Method Summary collapse

Methods inherited from Tick

#+, #-, #initialize

Methods inherited from DateOffsetType

#freq_string, #initialize

Methods inherited from DateOffset

#+, #-, #-@, #initialize

Constructor Details

This class inherits a constructor from Daru::Offsets::Tick

Instance Method Details

#multiplierObject



123
124
125
# File 'lib/daru/date_time/offsets.rb', line 123

def multiplier
  1.1574074074074073e-05
end