Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/hardstatus/time.rb
Overview
–
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
++
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #milliseconds ⇒ Object (also: #millisecond, #ms)
- #minutes ⇒ Object (also: #minute)
- #seconds ⇒ Object (also: #second, #s)
Instance Method Details
#days ⇒ Object Also known as: day
38 39 40 |
# File 'lib/hardstatus/time.rb', line 38 def days self * 60 * 60 * 24 end |
#hours ⇒ Object Also known as: hour
32 33 34 |
# File 'lib/hardstatus/time.rb', line 32 def hours self * 60 * 60 end |
#milliseconds ⇒ Object Also known as: millisecond, ms
19 20 21 |
# File 'lib/hardstatus/time.rb', line 19 def milliseconds self / 1000 end |
#minutes ⇒ Object Also known as: minute
26 27 28 |
# File 'lib/hardstatus/time.rb', line 26 def minutes self * 60 end |
#seconds ⇒ Object Also known as: second, s
12 13 14 |
# File 'lib/hardstatus/time.rb', line 12 def seconds self end |