instance method
in_milliseconds
Ruby on Rails 4.2.9
Since v4.1.16Signature
in_milliseconds()
Used with the standard time durations, like 1.hour.in_milliseconds – so we can feed them to JavaScript functions like getTime().
Source
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 51
def in_milliseconds
self * 1000
end
Defined in activesupport/lib/active_support/core_ext/numeric/time.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric