Time.fromSeconds constructor

Time.fromSeconds(
  1. Rational seconds
)

Creates a Time representing the specified number of seconds.

Implementation

factory Time.fromSeconds(Rational seconds) =>
    Time.fromUnits(TimeUnit.second, seconds);