Constant representing zero seconds.
Creates a Seconds representing the number of whole seconds between the two specified datetimes.
Creates a Seconds representing the number of whole seconds between the two specified datetimes.
the start instant, must not be null
the end instant, must not be null
the period in seconds
IllegalArgumentException
if the instants are null or invalid
implicit that will only use the seconds part of a duration
Obtains an instance of Seconds.
Obtains an instance of Seconds. This will actually only use the seconds of a java.time.Duration.
the duration
the instance of Seconds
Creates a new Seconds by parsing a string in the ISO8601 format 'PTnS'.
Creates a new Seconds by parsing a string in the ISO8601 format 'PTnS'.
The parse will accept the full ISO syntax of PnYnMnWnDTnHnMnS however only the seconds component may be non-zero. If any other component is non-zero, an exception will be thrown.
the period string, null returns zero
the period in seconds
IllegalArgumentException
if the string format is invalid
Obtains an instance of Seconds.
Obtains an instance of Seconds.
the number of seconds to obtain an instance for
the instance of Seconds