final case class LongOps(underlying: Long) extends AnyVal with Product with Serializable
Enriches a scala.Int with methods for obtaining Duration instances.
- Source
- LongOps.scala
- Alphabetic
- By Inheritance
- LongOps
- Serializable
- Product
- Equals
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (LongOps, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def day: Duration
Obtains a Duration representing a number of days.
- def days: Duration
Obtains a Duration representing a number of days.
- def ensuring(cond: (LongOps) => Boolean, msg: => Any): LongOps
- def ensuring(cond: (LongOps) => Boolean): LongOps
- def ensuring(cond: Boolean, msg: => Any): LongOps
- def ensuring(cond: Boolean): LongOps
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def hour: Duration
Obtains a Duration representing a number of hours.
- def hours: Duration
Obtains a Duration representing a number of hours.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def milli: Duration
Obtains a Duration representing a number of milliseconds.
- def millis: Duration
Obtains a Duration representing a number of milliseconds.
- def minute: Duration
Obtains a Duration representing a number of minutes.
- def minutes: Duration
Obtains a Duration representing a number of minutes.
- def nano: Duration
Obtains a Duration representing a number of nanoseconds.
- def nanos: Duration
Obtains a Duration representing a number of nanoseconds.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def second: Duration
Obtains a Duration representing a number of seconds.
- def seconds: Duration
Obtains a Duration representing a number of seconds.
- val underlying: Long
Deprecated Value Members
- def →[B](y: B): (LongOps, B)
- Implicit
- This member is added by an implicit conversion from LongOps toArrowAssoc[LongOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
Scala Time
scala-time is a simple Scala wrapper for easier use JDK 1.8.0 (Java 8) time APIs
Overview
The library is contained in the scalatime package which includes extension methods provided via implicit conversion methods to Scala value classes.
For usage examples see below: