Duration.ofSeconds

Obtains a {@code Duration} representing a number of seconds. !(p) The nanosecond _in second field is set to zero.

@param seconds the number of seconds, positive or negative @return a {@code Duration}, not null

  1. Duration ofSeconds(long seconds)
    class Duration
    static
    ofSeconds
    (
    long seconds
    )
  2. Duration ofSeconds(long seconds, long nanoAdjustment)

Meta