Trait/Object

dtc

LawlessDateTimeTC

Related Docs: object LawlessDateTimeTC | package dtc

Permalink

trait LawlessDateTimeTC[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.

Linear Supertypes
Order[A], PartialOrder[A], Eq[A], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LawlessDateTimeTC
  2. Order
  3. PartialOrder
  4. Eq
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def compare(x: A, y: A): Int

    Permalink
    Definition Classes
    Order
  2. abstract def date(x: A): LocalDate

    Permalink

    date part of x

  3. abstract def dayOfMonth(x: A): Int

    Permalink
  4. abstract def dayOfWeek(x: A): DayOfWeek

    Permalink
  5. abstract def daysUntil(x: A, until: A): Long

    Permalink

    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

  6. abstract def hour(x: A): Int

    Permalink
  7. abstract def hoursUntil(x: A, until: A): Long

    Permalink

    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

  8. abstract def millisecond(x: A): Int

    Permalink
  9. abstract def millisecondsUntil(x: A, until: A): Long

    Permalink

    Returns number of milliseconds between two datetime values.

    Returns number of milliseconds between two datetime values. Result can be negative if until < x

  10. abstract def minute(x: A): Int

    Permalink
  11. abstract def minutesUntil(x: A, until: A): Long

    Permalink

    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

  12. abstract def month(x: A): Int

    Permalink
  13. abstract def monthsUntil(x: A, until: A): Long

    Permalink

    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

  14. abstract def plus(x: A, d: Duration): A

    Permalink

    add (possibly negative) duration to this datetime

  15. abstract def plusMonths(x: A, months: Int): A

    Permalink

    Add (possibly negative) number of months to this datetime.

  16. abstract def plusYears(x: A, years: Int): A

    Permalink

    Add (possibly negative) number of years to this datetime.

  17. abstract def second(x: A): Int

    Permalink
  18. abstract def secondsUntil(x: A, until: A): Long

    Permalink

    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

  19. abstract def time(x: A): LocalTime

    Permalink

    time part of x

  20. abstract def withDayOfMonth(x: A, dayOfMonth: Int): A

    Permalink

    Create a copy of x with day of month altered.

  21. abstract def withHour(x: A, hour: Int): A

    Permalink

    Create a copy of x with hour of day altered.

  22. abstract def withMillisecond(x: A, millisecond: Int): A

    Permalink

    Create a copy of x with millisecond of second altered.

  23. abstract def withMinute(x: A, minute: Int): A

    Permalink

    Create a copy of x with minute if hour altered.

  24. abstract def withMonth(x: A, month: Int): A

    Permalink

    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

  25. abstract def withSecond(x: A, second: Int): A

    Permalink

    Create a copy of x with second of minute altered.

  26. abstract def withYear(x: A, year: Int): A

    Permalink

    Create a copy of x with year altered.

  27. abstract def year(x: A): Int

    Permalink
  28. abstract def yearsUntil(x: A, until: A): Long

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def and(that: Eq[A]): Eq[A]

    Permalink
    Definition Classes
    Eq
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def comparison(x: A, y: A): Comparison

    Permalink
    Definition Classes
    Order
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def eqv(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → PartialOrder → Eq
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def gt(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → PartialOrder
  14. def gteqv(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → PartialOrder
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isAfter(x: A, y: A): Boolean

    Permalink
  17. def isAfterOrEquals(x: A, y: A): Boolean

    Permalink
  18. def isBefore(x: A, y: A): Boolean

    Permalink
  19. def isBeforeOrEquals(x: A, y: A): Boolean

    Permalink
  20. def isEqual(x: A, y: A): Boolean

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def lt(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → PartialOrder
  23. def lteqv(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → PartialOrder
  24. def max(x: A, y: A): A

    Permalink
    Definition Classes
    Order
  25. def min(x: A, y: A): A

    Permalink
    Definition Classes
    Order
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def neqv(x: A, y: A): Boolean

    Permalink
    Definition Classes
    Order → Eq
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def on[B](f: (B) ⇒ A): Order[B]

    Permalink
    Definition Classes
    Order → PartialOrder → Eq
  31. def or(that: Eq[A]): Eq[A]

    Permalink
    Definition Classes
    Eq
  32. def partialCompare(x: A, y: A): Double

    Permalink
    Definition Classes
    Order → PartialOrder
  33. def partialComparison(x: A, y: A): Option[Comparison]

    Permalink
    Definition Classes
    PartialOrder
  34. def pmax(x: A, y: A): Option[A]

    Permalink
    Definition Classes
    PartialOrder
  35. def pmin(x: A, y: A): Option[A]

    Permalink
    Definition Classes
    PartialOrder
  36. def reverse: Order[A]

    Permalink
    Definition Classes
    Order → PartialOrder
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toOrdering: Ordering[A]

    Permalink
    Definition Classes
    Order
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def tryCompare(x: A, y: A): Option[Int]

    Permalink
    Definition Classes
    PartialOrder
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def whenEqual(o: Order[A]): Order[A]

    Permalink
    Definition Classes
    Order

Inherited from Order[A]

Inherited from PartialOrder[A]

Inherited from Eq[A]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped