Module: TimeUnits

Included in:
Integer
Defined in:
lib/units-time.rb

Instance Method Summary collapse

Instance Method Details

#dayObject Also known as: days



37
# File 'lib/units-time.rb', line 37

def day()       Timedelta.days( self );  end

#fortnightObject Also known as: fortnights



39
# File 'lib/units-time.rb', line 39

def fortnight() Timedelta.weeks( self * 2 ); end

#hourObject Also known as: hours



36
# File 'lib/units-time.rb', line 36

def hour()      Timedelta.hours( self ); end

#minuteObject Also known as: minutes, mins, min



35
# File 'lib/units-time.rb', line 35

def minute()    Timedelta.minutes( self ); end

#secondObject Also known as: seconds, secs, sec



34
# File 'lib/units-time.rb', line 34

def second()    Timedelta.seconds( self ); end

#weekObject Also known as: weeks



38
# File 'lib/units-time.rb', line 38

def week()      Timedelta.weeks( self ); end

#yearObject Also known as: years



40
# File 'lib/units-time.rb', line 40

def year()      Timedelta.years( self ); end