Attributes
Members list
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
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.
Value parameters
- endInclusive
-
the end instant, must not be null
- startInclusive
-
the start instant, must not be null
Attributes
- Returns
-
the period in seconds
- Throws
-
IllegalArgumentException
if the instants are null or invalid
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.
Value parameters
- periodStr
-
the period string, null returns zero
Attributes
- Returns
-
the period in seconds
- Throws
-
IllegalArgumentException
if the string format is invalid
Implicits
Implicits
implicit that will only use the seconds part of a duration
implicit that will only use the seconds part of a duration