final case class DateTime extends javadsl.model.DateTime with Ordered[DateTime] with Renderable with Product with Serializable

Immutable, fast and efficient Date + Time implementation without any dependencies. Does not support TimeZones, all DateTime values are always GMT based. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).

Source
DateTime.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateTime
  2. Serializable
  3. Product
  4. Equals
  5. Renderable
  6. Ordered
  7. Comparable
  8. DateTime
  9. AnyRef
  10. Any
Implicitly
  1. by orderingToOrdered
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def +(millis: Long): DateTime

    Creates a new DateTime that represents the point in time the given number of ms later.

  2. def -(millis: Long): DateTime

    Creates a new DateTime that represents the point in time the given number of ms earlier.

  3. def <(that: DateTime): Boolean
    Definition Classes
    Ordered
  4. def <=(that: DateTime): Boolean
    Definition Classes
    Ordered
  5. def >(that: DateTime): Boolean
    Definition Classes
    Ordered
  6. def >=(that: DateTime): Boolean
    Definition Classes
    Ordered
  7. val clicks: Long

    Returns this instant as "clicks", i.e.

    Returns this instant as "clicks", i.e. as milliseconds since January 1, 1970, 00:00:00 GMT

    Definition Classes
    DateTimeDateTime
  8. def compare(that: DateTime): Int
    Definition Classes
    DateTime → Ordered
  9. def compareTo(that: DateTime): Int
    Definition Classes
    Ordered → Comparable
  10. val day: Int

    Returns the day of this instant in GMT.

    Returns the day of this instant in GMT.

    Definition Classes
    DateTimeDateTime
  11. def equals(obj: Any): Boolean
    Definition Classes
    DateTime → Equals → AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    DateTime → AnyRef → Any
  13. val hour: Int

    Returns the hour of this instant in GMT.

    Returns the hour of this instant in GMT.

    Definition Classes
    DateTimeDateTime
  14. val isLeapYear: Boolean

    Returns if this instant interpreted as a Date in GMT belongs to a leap year.

    Returns if this instant interpreted as a Date in GMT belongs to a leap year.

    Definition Classes
    DateTimeDateTime
  15. def minus(millis: Long): DateTime

    Creates a new DateTime that represents the point in time the given number of ms earlier.

    Creates a new DateTime that represents the point in time the given number of ms earlier.

    Definition Classes
    DateTimeDateTime
  16. val minute: Int

    Returns the minute of this instant in GMT.

    Returns the minute of this instant in GMT.

    Definition Classes
    DateTimeDateTime
  17. val month: Int

    Returns the month of this instant in GMT.

    Returns the month of this instant in GMT.

    Definition Classes
    DateTimeDateTime
  18. def monthStr(): String

    The month as a 3 letter abbreviation: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov or Dec

    The month as a 3 letter abbreviation: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov or Dec

    Definition Classes
    DateTimeDateTime
  19. def plus(millis: Long): DateTime

    Creates a new DateTime that represents the point in time the given number of ms later.

    Creates a new DateTime that represents the point in time the given number of ms later.

    Definition Classes
    DateTimeDateTime
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. def render[R <: Rendering](r: R): r.type

    yyyy-mm-ddThh:mm:ss

    yyyy-mm-ddThh:mm:ss

    Definition Classes
    DateTime → Renderable
  22. def renderIsoDate[R <: Rendering](r: R): r.type

    yyyy-mm-dd

  23. def renderIsoDateTimeString[R <: Rendering](r: R): r.type

    yyyy-mm-ddThh:mm:ss

  24. def renderIsoLikeDateTimeString[R <: Rendering](r: R): r.type

    yyyy-mm-dd hh:mm:ss

  25. def renderRfc1123DateTimeString[R <: Rendering](r: R): r.type

    RFC1123 date string, e.g.

    RFC1123 date string, e.g. Sun, 06 Nov 1994 08:49:37 GMT

  26. val second: Int

    Returns the second of this instant in GMT.

    Returns the second of this instant in GMT.

    Definition Classes
    DateTimeDateTime
  27. def toIsoDateString(): String

    yyyy-mm-dd

    yyyy-mm-dd

    Definition Classes
    DateTimeDateTime
  28. def toIsoDateTimeString(): String

    yyyy-mm-ddThh:mm:ss

    yyyy-mm-ddThh:mm:ss

    Definition Classes
    DateTimeDateTime
  29. def toIsoLikeDateTimeString(): String

    yyyy-mm-dd hh:mm:ss

    yyyy-mm-dd hh:mm:ss

    Definition Classes
    DateTimeDateTime
  30. def toRfc1123DateTimeString(): String

    RFC1123 date string, e.g.

    RFC1123 date string, e.g. Sun, 06 Nov 1994 08:49:37 GMT

    Definition Classes
    DateTimeDateTime
  31. def toString(): String

    yyyy-mm-ddThh:mm:ss

    yyyy-mm-ddThh:mm:ss

    Definition Classes
    DateTime → AnyRef → Any
  32. val weekday: Int

    Returns the weekday of this instant in GMT.

    Returns the weekday of this instant in GMT. Sunday is 0, Monday is 1, etc.

    Definition Classes
    DateTimeDateTime
  33. def weekdayStr(): String

    The day of the week as a 3 letter abbreviation: Sun, Mon, Tue, Wed, Thu, Fri or Sat

    The day of the week as a 3 letter abbreviation: Sun, Mon, Tue, Wed, Thu, Fri or Sat

    Definition Classes
    DateTimeDateTime
  34. val year: Int

    Returns the year of this instant in GMT.

    Returns the year of this instant in GMT.

    Definition Classes
    DateTimeDateTime

Shadowed Implicit Value Members

  1. def <(that: DateTime): Boolean
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).<(that)
    Definition Classes
    Ordered
  2. def <=(that: DateTime): Boolean
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).<=(that)
    Definition Classes
    Ordered
  3. def >(that: DateTime): Boolean
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).>(that)
    Definition Classes
    Ordered
  4. def >=(that: DateTime): Boolean
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).>=(that)
    Definition Classes
    Ordered
  5. def compare(that: DateTime): Int
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).compare(that)
    Definition Classes
    Ordered
  6. def compareTo(that: DateTime): Int
    Implicit
    This member is added by an implicit conversion from DateTime toOrdered[DateTime] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (dateTime: Ordered[DateTime]).compareTo(that)
    Definition Classes
    Ordered → Comparable