Packages

trait Zoned[A] extends TimePoint[A] with Capture[A] with Serializable

A typeclass for zoned datetime values. These values are zone aware and follow DST transformation rules.

Semantics are similar to java.time.ZonedDateTime

Annotations
@implicitNotFound("Could not find an instance of Zoned for ${A}")
Linear Supertypes
Capture[A], TimePoint[A], Order[A], PartialOrder[A], Eq[A], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Zoned
  2. Capture
  3. TimePoint
  4. Order
  5. PartialOrder
  6. Eq
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def capture(date: LocalDate, time: LocalTime, zone: TimeZoneId): A

    Java time based constructor for values of type A.

    Java time based constructor for values of type A. Resulting time point will match specified local date and time at specified zone.

    date

    local date part of A

    time

    local time part of A

    zone

    time zone context for specified local date and time

    Definition Classes
    Capture
  2. abstract def compare(x: A, y: A): Int
    Definition Classes
    Order
  3. abstract def date(x: A): LocalDate

    Date part of x

    Date part of x

    Definition Classes
    TimePoint
  4. abstract def dayOfMonth(x: A): Int
    Definition Classes
    TimePoint
  5. abstract def dayOfWeek(x: A): DayOfWeek
    Definition Classes
    TimePoint
  6. 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

    Definition Classes
    TimePoint
  7. abstract def hour(x: A): Int
    Definition Classes
    TimePoint
  8. 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

    Definition Classes
    TimePoint
  9. abstract def millisecond(x: A): Int
    Definition Classes
    TimePoint
  10. 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

    Definition Classes
    TimePoint
  11. abstract def minus(x: A, d: Duration): A

    Subtract a (possibly negative) duration from this datetime

    Subtract a (possibly negative) duration from this datetime

    Definition Classes
    TimePoint
  12. abstract def minute(x: A): Int
    Definition Classes
    TimePoint
  13. 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

    Definition Classes
    TimePoint
  14. abstract def month(x: A): Int
    Definition Classes
    TimePoint
  15. 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

    Definition Classes
    TimePoint
  16. abstract def offset(x: A): Offset

    UTC offset of this datetime value

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

    Add a (possibly negative) duration to this datetime

    Add a (possibly negative) duration to this datetime

    Definition Classes
    TimePoint
  18. abstract def plusDays(x: A, days: Int): A

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

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

    Definition Classes
    TimePoint
  19. abstract def plusMonths(x: A, months: Int): A

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

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

    Definition Classes
    TimePoint
  20. abstract def plusYears(x: A, years: Int): A

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

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

    Definition Classes
    TimePoint
  21. abstract def second(x: A): Int
    Definition Classes
    TimePoint
  22. 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

    Definition Classes
    TimePoint
  23. abstract def time(x: A): LocalTime

    Time part of x

    Time part of x

    Definition Classes
    TimePoint
  24. abstract def utc(x: A): (LocalDate, LocalTime)

    Get UTC date and time for this instant

    Get UTC date and time for this instant

    Definition Classes
    TimePoint
  25. abstract def withDate(x: A, date: LocalDate): A

    Create a copy of x with date part updated to supplied one.

    Create a copy of x with date part updated to supplied one.

    Definition Classes
    TimePoint
  26. abstract def withDayOfMonth(x: A, dayOfMonth: Int): A

    Create a copy of x with day of month altered.

    Create a copy of x with day of month altered.

    Definition Classes
    TimePoint
  27. abstract def withHour(x: A, hour: Int): A

    Create a copy of x with hour of day altered.

    Create a copy of x with hour of day altered.

    Definition Classes
    TimePoint
  28. abstract def withMillisecond(x: A, millisecond: Int): A

    Create a copy of x with millisecond of second altered.

    Create a copy of x with millisecond of second altered.

    Definition Classes
    TimePoint
  29. abstract def withMinute(x: A, minute: Int): A

    Create a copy of x with minute if hour altered.

    Create a copy of x with minute if hour altered.

    Definition Classes
    TimePoint
  30. 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

    Definition Classes
    TimePoint
  31. abstract def withSecond(x: A, second: Int): A

    Create a copy of x with second of minute altered.

    Create a copy of x with second of minute altered.

    Definition Classes
    TimePoint
  32. abstract def withTime(x: A, time: LocalTime): A

    Create a copy of x with time part updated to supplied one.

    Create a copy of x with time part updated to supplied one.

    Definition Classes
    TimePoint
  33. abstract def withYear(x: A, year: Int): A

    Create a copy of x with year altered.

    Create a copy of x with year altered.

    Definition Classes
    TimePoint
  34. abstract def withZoneSameInstant(x: A, zone: TimeZoneId): A

    Returns a new date time value with timezone altered in a way, that preserves exact moment in time, described by x

    Returns a new date time value with timezone altered in a way, that preserves exact moment in time, described by x

    x

    original date-time

    zone

    time zone to create new value in

  35. abstract def withZoneSameLocal(x: A, zone: TimeZoneId): A

    Returns a new date time value with timezone altered.

    Returns a new date time value with timezone altered. Local date and time stay the same.

    This means that if supplied zone has different offset, new value will have different instant.

    x

    original date-time

    zone

    time zone to create new value in

  36. abstract def year(x: A): Int
    Definition Classes
    TimePoint
  37. 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

    Definition Classes
    TimePoint
  38. abstract def zone(x: A): TimeZoneId

    Get the timezone of x

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def comparison(x: A, y: A): Comparison
    Definition Classes
    Order
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def eqv(x: A, y: A): Boolean
    Definition Classes
    Order → PartialOrder → Eq
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def gt(x: A, y: A): Boolean
    Definition Classes
    Order → PartialOrder
  13. def gteqv(x: A, y: A): Boolean
    Definition Classes
    Order → PartialOrder
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def isAfter(x: A, y: A): Boolean
    Definition Classes
    TimePoint
  16. def isAfterOrEquals(x: A, y: A): Boolean
    Definition Classes
    TimePoint
  17. def isBefore(x: A, y: A): Boolean
    Definition Classes
    TimePoint
  18. def isBeforeOrEquals(x: A, y: A): Boolean
    Definition Classes
    TimePoint
  19. def isEqual(x: A, y: A): Boolean
    Definition Classes
    TimePoint
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def lt(x: A, y: A): Boolean
    Definition Classes
    Order → PartialOrder
  22. def lteqv(x: A, y: A): Boolean
    Definition Classes
    Order → PartialOrder
  23. def max(x: A, y: A): A
    Definition Classes
    Order
  24. def min(x: A, y: A): A
    Definition Classes
    Order
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def neqv(x: A, y: A): Boolean
    Definition Classes
    Order → Eq
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def partialCompare(x: A, y: A): Double
    Definition Classes
    Order → PartialOrder
  30. def partialComparison(x: A, y: A): Option[Comparison]
    Definition Classes
    PartialOrder
  31. def pmax(x: A, y: A): Option[A]
    Definition Classes
    PartialOrder
  32. def pmin(x: A, y: A): Option[A]
    Definition Classes
    PartialOrder
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toOrdering: Ordering[A]
    Definition Classes
    Order
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def tryCompare(x: A, y: A): Option[Int]
    Definition Classes
    PartialOrder
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Capture[A]

Inherited from TimePoint[A]

Inherited from Order[A]

Inherited from PartialOrder[A]

Inherited from Eq[A]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped