Module: TimeTransformer
Instance Method Summary collapse
- #day ⇒ Object (also: #days)
- #hour ⇒ Object (also: #hours)
- #minute ⇒ Object (also: #minutes)
- #week ⇒ Object (also: #weeks)
Instance Method Details
#day ⇒ Object Also known as: days
6 7 8 |
# File 'lib/doraemon/context/date.rb', line 6 def day self * 3600 * 24 * 1000 end |
#hour ⇒ Object Also known as: hours
10 11 12 |
# File 'lib/doraemon/context/date.rb', line 10 def hour self * 3600 * 1000 end |
#minute ⇒ Object Also known as: minutes
14 15 16 |
# File 'lib/doraemon/context/date.rb', line 14 def minute self * 60 * 1000 end |
#week ⇒ Object Also known as: weeks
2 3 4 |
# File 'lib/doraemon/context/date.rb', line 2 def week self * 3600 * 24 * 7 * 1000 end |