Module: TimeUnits
- Included in:
- Integer
- Defined in:
- lib/units-time.rb
Instance Method Summary collapse
- #day ⇒ Object (also: #days)
- #fortnight ⇒ Object (also: #fortnights)
- #hour ⇒ Object (also: #hours)
- #minute ⇒ Object (also: #minutes, #mins, #min)
- #second ⇒ Object (also: #seconds, #secs, #sec)
- #week ⇒ Object (also: #weeks)
- #year ⇒ Object (also: #years)
Instance Method Details
#day ⇒ Object Also known as: days
37 |
# File 'lib/units-time.rb', line 37 def day() Timedelta.days( self ); end |
#fortnight ⇒ Object Also known as: fortnights
39 |
# File 'lib/units-time.rb', line 39 def fortnight() Timedelta.weeks( self * 2 ); end |
#hour ⇒ Object Also known as: hours
36 |
# File 'lib/units-time.rb', line 36 def hour() Timedelta.hours( self ); end |
#minute ⇒ Object Also known as: minutes, mins, min
35 |
# File 'lib/units-time.rb', line 35 def minute() Timedelta.minutes( self ); end |
#second ⇒ Object Also known as: seconds, secs, sec
34 |
# File 'lib/units-time.rb', line 34 def second() Timedelta.seconds( self ); end |