Module: TimeConversion

Included in:
Fixnum, Float
Defined in:
lib/voterable/functions.rb

Overview

The TimeConversions module adds methods to number varibles to translate Between different types of time (seconds, days, ect)

Instance Method Summary collapse

Instance Method Details

#days_in_secondsObject

Converts self from days into seconds



7
8
9
# File 'lib/voterable/functions.rb', line 7

def days_in_seconds
   self*86400
end