Class: Daru::Offsets::Day

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

Overview

Create an days offset

Examples:

Create a Day offset

offset = Daru::Offsets::Day.new(2)
offset + DateTime.new(2012,5,1,4,3)
#=> #<DateTime: 2012-05-03T04:03:00+00:00 ((2456051j,14580s,0n),+0s,2299161j)>

Constant Summary collapse

FREQ =
'D'.freeze

Instance Method Summary collapse

Methods inherited from Tick

#+, #-

Methods inherited from DateOffsetType

#freq_string, #initialize

Methods inherited from DateOffset

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

Constructor Details

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

Instance Method Details

#multiplierObject



171
172
173
# File 'lib/daru/date_time/offsets.rb', line 171

def multiplier
  1
end