method

seconds

v8.1.1 - Show latest stable - Class: Numeric
seconds()
public

Returns a Duration instance matching the number of seconds provided.

2.seconds # => 2 seconds