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
- Alphabetic
- By Inheritance
- DateTime
- Serializable
- Serializable
- Product
- Equals
- Renderable
- Ordered
- Comparable
- DateTime
- AnyRef
- Any
- by orderingToOrdered
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
def
+(millis: Long): DateTime
Creates a new
DateTime
that represents the point in time the given number of ms later. -
def
-(millis: Long): DateTime
Creates a new
DateTime
that represents the point in time the given number of ms earlier. -
def
<(that: DateTime): Boolean
- Definition Classes
- Ordered
-
def
<=(that: DateTime): Boolean
- Definition Classes
- Ordered
-
def
>(that: DateTime): Boolean
- Definition Classes
- Ordered
-
def
>=(that: DateTime): Boolean
- Definition Classes
- Ordered
-
val
clicks: Long
Returns this instant as "clicks", i.e.
-
def
compare(that: DateTime): Int
- Definition Classes
- DateTime → Ordered
-
def
compareTo(that: DateTime): Int
- Definition Classes
- Ordered → Comparable
-
val
day: Int
Returns the day of this instant in GMT.
-
def
equals(obj: Any): Boolean
- Definition Classes
- DateTime → Equals → AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- DateTime → AnyRef → Any
-
val
hour: Int
Returns the hour of this instant in GMT.
-
val
isLeapYear: Boolean
Returns if this instant interpreted as a Date in GMT belongs to a leap year.
-
def
minus(millis: Long): DateTime
Creates a new
DateTime
that represents the point in time the given number of ms earlier. -
val
minute: Int
Returns the minute of this instant in GMT.
-
val
month: Int
Returns the month of this instant in GMT.
-
def
monthStr(): String
The month as a 3 letter abbreviation:
Jan
,Feb
,Mar
,Apr
,May
,Jun
,Jul
,Aug
,Sep
,Oct
,Nov
orDec
-
def
plus(millis: Long): DateTime
Creates a new
DateTime
that represents the point in time the given number of ms later. -
def
render[R <: Rendering](r: R): r.type
yyyy-mm-ddThh:mm:ss
yyyy-mm-ddThh:mm:ss
- Definition Classes
- DateTime → Renderable
-
def
renderIsoDate[R <: Rendering](r: R): r.type
yyyy-mm-dd
-
def
renderIsoDateTimeString[R <: Rendering](r: R): r.type
yyyy-mm-ddThh:mm:ss
-
def
renderIsoLikeDateTimeString[R <: Rendering](r: R): r.type
yyyy-mm-dd hh:mm:ss
-
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
-
val
second: Int
Returns the second of this instant in GMT.
-
def
toIsoDateString(): String
yyyy-mm-dd
-
def
toIsoDateTimeString(): String
yyyy-mm-ddThh:mm:ss
-
def
toIsoLikeDateTimeString(): String
yyyy-mm-dd hh:mm:ss
-
def
toRfc1123DateTimeString(): String
RFC1123 date string, e.g.
-
def
toString(): String
yyyy-mm-ddThh:mm:ss
yyyy-mm-ddThh:mm:ss
- Definition Classes
- DateTime → AnyRef → Any
-
val
weekday: Int
Returns the weekday of this instant in GMT.
-
def
weekdayStr(): String
The day of the week as a 3 letter abbreviation:
Sun
,Mon
,Tue
,Wed
,Thu
,Fri
orSat
-
val
year: Int
Returns the year of this instant in GMT.
Shadowed Implicit Value Members
-
def
<(that: DateTime): Boolean
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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
-
def
<=(that: DateTime): Boolean
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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
-
def
>(that: DateTime): Boolean
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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
-
def
>=(that: DateTime): Boolean
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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
-
def
compare(that: DateTime): Int
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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
-
def
compareTo(that: DateTime): Int
- Implicit
- This member is added by an implicit conversion from DateTime to Ordered[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