method

to_s

rails latest stable - Class: ActiveSupport::Duration
to_s()
public

Returns the amount of seconds a duration covers as a string. For more information check to_i method.

1.day.to_s # => "86400"