module TimeUnits

Public Instance Methods

day() click to toggle source
# File lib/units-time.rb, line 37
def day()       Timedelta.days( self );  end
Also aliased as: days
days()

def h() hour; end ### todo/fix: remove/add - why? why not?

Alias for: day
fortnight() click to toggle source
# File lib/units-time.rb, line 39
def fortnight() Timedelta.weeks( self * 2 ); end
Also aliased as: fortnights
fortnights()

def w() week; end ### todo/fix: remove/add - why? why not?

Alias for: fortnight
hour() click to toggle source
# File lib/units-time.rb, line 36
def hour()      Timedelta.hours( self ); end
Also aliased as: hours
hours()

def m() minute; end ### todo/fix: remove/add - why? why not?

Alias for: hour
min()
Alias for: minute
mins()
Alias for: minute
minute() click to toggle source
# File lib/units-time.rb, line 35
def minute()    Timedelta.minutes( self ); end
Also aliased as: minutes, mins, min
minutes()

def s() second; end ### todo/fix: remove/add - why? why not?

Alias for: minute
sec()
Alias for: second
second() click to toggle source
# File lib/units-time.rb, line 34
def second()    Timedelta.seconds( self ); end
Also aliased as: seconds, secs, sec
seconds()

alias

Alias for: second
secs()
Alias for: second
week() click to toggle source
# File lib/units-time.rb, line 38
def week()      Timedelta.weeks( self ); end
Also aliased as: weeks
weeks()

def d() day; end ### todo/fix: remove/add - why? why not?

Alias for: week
year() click to toggle source
# File lib/units-time.rb, line 40
def year()      Timedelta.years( self ); end
Also aliased as: years
years()
Alias for: year