object Seconds extends Serializable
- Source
- Seconds.scala
- Alphabetic
- By Inheritance
- Seconds
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ZERO: Seconds
Constant representing zero seconds.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def between(startInclusive: Temporal, endInclusive: Temporal): 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.
- startInclusive
the start instant, must not be null
- endInclusive
the end instant, must not be null
- returns
the period in seconds
- Exceptions thrown
IllegalArgumentException
if the instants are null or invalid
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def fromDurationToSecond(duration: Duration): Seconds
implicit that will only use the seconds part of a duration
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def ofDuration(duration: Duration): Seconds
Obtains an instance of Seconds.
Obtains an instance of Seconds. This will actually only use the seconds of a java.time.Duration.
- duration
the duration
- returns
the instance of Seconds
- def parse(periodStr: String): 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.
- periodStr
the period string, null returns zero
- returns
the period in seconds
- Exceptions thrown
IllegalArgumentException
if the string format is invalid
- def seconds(seconds: Long): Seconds
Obtains an instance of Seconds.
Obtains an instance of Seconds.
- seconds
the number of seconds to obtain an instance for
- returns
the instance of Seconds
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)