Class: Daru::Offsets::Minute

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

Overview

Create a minutes offset

Examples:

Create a Minutes offset

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

Constant Summary collapse

FREQ =
'M'.freeze

Instance Method Summary collapse

Methods inherited from Tick

#+, #-, #initialize

Methods inherited from DateOffsetType

#freq_string, #initialize

Methods inherited from DateOffset

#+, #-, #[email protected], #initialize

Constructor Details

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

Instance Method Details

#multiplierObject


138
139
140
# File 'lib/daru/date_time/offsets.rb', line 138

def multiplier
  0.0006944444444444445
end