method

in_milliseconds

Importance_1
in_milliseconds() public

Returns the number of milliseconds equivalent to the seconds provided. Used with the standard time durations, like 1.hour.in_milliseconds – so we can feed them to JavaScript functions like getTime().

2.in_milliseconds # => 2_000
Show source
Register or log in to add new notes.