method

in_milliseconds

v5.0.0.1 - Show latest stable - Class: Numeric
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