method

in_milliseconds

Importance_1
v5.0.0.1 - Show latest stable - 0 notes - 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
Show source
Register or log in to add new notes.