trait TimePoint[A] extends Order[A] with Serializable
Common base type class for any dateTime. Doesn't hold any laws, exact behaviour and laws are defined for it's children.
All the methods follow java.time._ semantics.
- Annotations
- @implicitNotFound("Could not find an instance of TimePoint for ${A}")
- Alphabetic
- By Inheritance
- TimePoint
- Order
- PartialOrder
- Eq
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def compare(x: A, y: A): Int
- Definition Classes
- Order
- abstract def date(x: A): LocalDate
Date part of x
- abstract def dayOfMonth(x: A): Int
- abstract def dayOfWeek(x: A): DayOfWeek
- abstract def daysUntil(x: A, until: A): Long
Returns number of full days between two datetime values.
Returns number of full days between two datetime values. Result can be negative if
until
<x
- abstract def hour(x: A): Int
- abstract def hoursUntil(x: A, until: A): Long
Returns number of full hours between two datetime values.
Returns number of full hours between two datetime values. Result can be negative if
until
<x
- abstract def millisecond(x: A): Int
- abstract def millisecondsUntil(x: A, until: A): Long
Returns number of milliseconds between two datetime values.
Returns number of milliseconds between two datetime values. Result can be negative if
until
<x
- abstract def minus(x: A, d: Duration): A
Subtract a (possibly negative) duration from this datetime
- abstract def minute(x: A): Int
- abstract def minutesUntil(x: A, until: A): Long
Returns number of full minutes between two datetime values.
Returns number of full minutes between two datetime values. Result can be negative if
until
<x
- abstract def month(x: A): Int
- abstract def monthsUntil(x: A, until: A): Long
Returns number of full months between two datetime values.
Returns number of full months between two datetime values. Result can be negative if
until
<x
- abstract def plus(x: A, d: Duration): A
Add a (possibly negative) duration to this datetime
- abstract def plusDays(x: A, days: Int): A
Add a (possibly negative) number of months to this datetime.
- abstract def plusMonths(x: A, months: Int): A
Add a (possibly negative) number of months to this datetime.
- abstract def plusYears(x: A, years: Int): A
Add a (possibly negative) number of years to this datetime.
- abstract def second(x: A): Int
- abstract def secondsUntil(x: A, until: A): Long
Returns number of full seconds between two datetime values.
Returns number of full seconds between two datetime values. Result can be negative if
until
<x
- abstract def time(x: A): LocalTime
Time part of x
- abstract def utc(x: A): (LocalDate, LocalTime)
Get UTC date and time for this instant
- abstract def withDate(x: A, date: LocalDate): A
Create a copy of
x
with date part updated to supplied one. - abstract def withDayOfMonth(x: A, dayOfMonth: Int): A
Create a copy of
x
with day of month altered. - abstract def withHour(x: A, hour: Int): A
Create a copy of
x
with hour of day altered. - abstract def withMillisecond(x: A, millisecond: Int): A
Create a copy of
x
with millisecond of second altered. - abstract def withMinute(x: A, minute: Int): A
Create a copy of
x
with minute if hour altered. - abstract def withMonth(x: A, month: Int): A
Create a copy of
x
with month altered.Create a copy of
x
with month altered. Month value has to be in [1,12] range - abstract def withSecond(x: A, second: Int): A
Create a copy of
x
with second of minute altered. - abstract def withTime(x: A, time: LocalTime): A
Create a copy of
x
with time part updated to supplied one. - abstract def withYear(x: A, year: Int): A
Create a copy of
x
with year altered. - abstract def year(x: A): Int
- abstract def yearsUntil(x: A, until: A): Long
Returns number of full years between two datetime values.
Returns number of full years between two datetime values. Result can be negative if
until
<x
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def comparison(x: A, y: A): Comparison
- Definition Classes
- Order
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eqv(x: A, y: A): Boolean
- Definition Classes
- Order → PartialOrder → Eq
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gt(x: A, y: A): Boolean
- Definition Classes
- Order → PartialOrder
- def gteqv(x: A, y: A): Boolean
- Definition Classes
- Order → PartialOrder
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isAfter(x: A, y: A): Boolean
- def isAfterOrEquals(x: A, y: A): Boolean
- def isBefore(x: A, y: A): Boolean
- def isBeforeOrEquals(x: A, y: A): Boolean
- def isEqual(x: A, y: A): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lt(x: A, y: A): Boolean
- Definition Classes
- Order → PartialOrder
- def lteqv(x: A, y: A): Boolean
- Definition Classes
- Order → PartialOrder
- def max(x: A, y: A): A
- Definition Classes
- Order
- def min(x: A, y: A): A
- Definition Classes
- Order
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def neqv(x: A, y: A): Boolean
- Definition Classes
- Order → Eq
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partialCompare(x: A, y: A): Double
- Definition Classes
- Order → PartialOrder
- def partialComparison(x: A, y: A): Option[Comparison]
- Definition Classes
- PartialOrder
- def pmax(x: A, y: A): Option[A]
- Definition Classes
- PartialOrder
- def pmin(x: A, y: A): Option[A]
- Definition Classes
- PartialOrder
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toOrdering: Ordering[A]
- Definition Classes
- Order
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryCompare(x: A, y: A): Option[Int]
- Definition Classes
- PartialOrder
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()