Trait/Object

dtc

ZonedDateTimeTC

Related Docs: object ZonedDateTimeTC | package dtc

Permalink

trait ZonedDateTimeTC[A] extends LawlessDateTimeTC[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

Source
ZonedDateTimeTC.scala
Linear Supertypes
LawlessDateTimeTC[A], Order[A], PartialOrder[A], Eq[A], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZonedDateTimeTC
  2. LawlessDateTimeTC
  3. Order
  4. PartialOrder
  5. Eq
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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

    date part of x

    Definition Classes
    LawlessDateTimeTC
  3. abstract def dayOfMonth(x: A): Int

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

    Permalink
    Definition Classes
    LawlessDateTimeTC
  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

    Definition Classes
    LawlessDateTimeTC
  6. abstract def hour(x: A): Int

    Permalink
    Definition Classes
    LawlessDateTimeTC
  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

    Definition Classes
    LawlessDateTimeTC
  8. abstract def millisecond(x: A): Int

    Permalink
    Definition Classes
    LawlessDateTimeTC
  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

    Definition Classes
    LawlessDateTimeTC
  10. abstract def minute(x: A): Int

    Permalink
    Definition Classes
    LawlessDateTimeTC
  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

    Definition Classes
    LawlessDateTimeTC
  12. abstract def month(x: A): Int

    Permalink
    Definition Classes
    LawlessDateTimeTC
  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

    Definition Classes
    LawlessDateTimeTC
  14. abstract def now(zone: TimeZoneId): A

    Permalink

    Get current system time for supplied timezone

  15. abstract def of(date: LocalDate, time: LocalTime, zone: TimeZoneId): A

    Permalink

    Java time based constructor for values of type A

    Java time based constructor for values of type A

    date

    local date part of A

    time

    local time part of A

    zone

    time zone for produced value

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

    Permalink

    add (possibly negative) duration to this datetime

    add (possibly negative) duration to this datetime

    Definition Classes
    LawlessDateTimeTC
  17. abstract def plusMonths(x: A, months: Int): A

    Permalink

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

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

    Definition Classes
    LawlessDateTimeTC
  18. abstract def plusYears(x: A, years: Int): A

    Permalink

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

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

    Definition Classes
    LawlessDateTimeTC
  19. abstract def second(x: A): Int

    Permalink
    Definition Classes
    LawlessDateTimeTC
  20. 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

    Definition Classes
    LawlessDateTimeTC
  21. abstract def time(x: A): LocalTime

    Permalink

    time part of x

    time part of x

    Definition Classes
    LawlessDateTimeTC
  22. abstract def withDayOfMonth(x: A, dayOfMonth: Int): A

    Permalink

    Create a copy of x with day of month altered.

    Create a copy of x with day of month altered.

    Definition Classes
    LawlessDateTimeTC
  23. abstract def withHour(x: A, hour: Int): A

    Permalink

    Create a copy of x with hour of day altered.

    Create a copy of x with hour of day altered.

    Definition Classes
    LawlessDateTimeTC
  24. abstract def withMillisecond(x: A, millisecond: Int): A

    Permalink

    Create a copy of x with millisecond of second altered.

    Create a copy of x with millisecond of second altered.

    Definition Classes
    LawlessDateTimeTC
  25. abstract def withMinute(x: A, minute: Int): A

    Permalink

    Create a copy of x with minute if hour altered.

    Create a copy of x with minute if hour altered.

    Definition Classes
    LawlessDateTimeTC
  26. 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

    Definition Classes
    LawlessDateTimeTC
  27. abstract def withSecond(x: A, second: Int): A

    Permalink

    Create a copy of x with second of minute altered.

    Create a copy of x with second of minute altered.

    Definition Classes
    LawlessDateTimeTC
  28. abstract def withYear(x: A, year: Int): A

    Permalink

    Create a copy of x with year altered.

    Create a copy of x with year altered.

    Definition Classes
    LawlessDateTimeTC
  29. abstract def withZoneSameInstant(x: A, zone: TimeZoneId): A

    Permalink

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

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

    x

    original zoned datetime

    zone

    time zone to create new value in

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

    Permalink

    Returns a new zoned date time value with timezone altered.

    Returns a new zoned 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 zoned datetime

    zone

    time zone to create new value in

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

    Permalink
    Definition Classes
    LawlessDateTimeTC
  32. 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

    Definition Classes
    LawlessDateTimeTC
  33. abstract def zone(x: A): TimeZoneId

    Permalink

    Get the timezone of 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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to any2stringadd[ZonedDateTimeTC[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ZonedDateTimeTC[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to ArrowAssoc[ZonedDateTimeTC[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

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

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

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

    Permalink
    Definition Classes
    Order
  10. def ensuring(cond: (ZonedDateTimeTC[A]) ⇒ Boolean, msg: ⇒ Any): ZonedDateTimeTC[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to Ensuring[ZonedDateTimeTC[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ZonedDateTimeTC[A]) ⇒ Boolean): ZonedDateTimeTC[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to Ensuring[ZonedDateTimeTC[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ZonedDateTimeTC[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to Ensuring[ZonedDateTimeTC[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ZonedDateTimeTC[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to Ensuring[ZonedDateTimeTC[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to StringFormat[ZonedDateTimeTC[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

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

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

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

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

    Permalink
    Definition Classes
    LawlessDateTimeTC
  24. def isAfterOrEquals(x: A, y: A): Boolean

    Permalink
    Definition Classes
    LawlessDateTimeTC
  25. def isBefore(x: A, y: A): Boolean

    Permalink
    Definition Classes
    LawlessDateTimeTC
  26. def isBeforeOrEquals(x: A, y: A): Boolean

    Permalink
    Definition Classes
    LawlessDateTimeTC
  27. def isEqual(x: A, y: A): Boolean

    Permalink
    Definition Classes
    LawlessDateTimeTC
  28. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Order
  52. def [B](y: B): (ZonedDateTimeTC[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ZonedDateTimeTC[A] to ArrowAssoc[ZonedDateTimeTC[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from LawlessDateTimeTC[A]

Inherited from Order[A]

Inherited from PartialOrder[A]

Inherited from Eq[A]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ZonedDateTimeTC[A] to any2stringadd[ZonedDateTimeTC[A]]

Inherited by implicit conversion StringFormat from ZonedDateTimeTC[A] to StringFormat[ZonedDateTimeTC[A]]

Inherited by implicit conversion Ensuring from ZonedDateTimeTC[A] to Ensuring[ZonedDateTimeTC[A]]

Inherited by implicit conversion ArrowAssoc from ZonedDateTimeTC[A] to ArrowAssoc[ZonedDateTimeTC[A]]

Ungrouped