object DateTimeSupport
Utility class for handling date and time
- Alphabetic
- By Inheritance
- DateTimeSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asTimelineDate(date: String): LocalDateTime
Parses the datetime text using the default formats timelineFormat and timelineFormatLive.
- val ascendingOrder: Ordering[LocalDateTime]
An ascending ordering of
An ascending ordering of
LocalDateTime
.
- implicit def byOption[T](seq: Seq[T]): ByOptionSequence[T]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val descendingOrder: Ordering[LocalDateTime]
An descending ordering of
An descending ordering of
LocalDateTime
.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def format(date: LocalDateTime, formatter: DateTimeFormatter): String
Formats a given datetime using a specific formatter.
Formats a given datetime using a specific formatter.
- date
The given datetime.
- formatter
The datetime formatter to use.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getLocalDateTime(millis: Long): LocalDateTime
Converts a count of milliseconds since epoch into a
Converts a count of milliseconds since epoch into a
LocalDateTime
.
- def getLocalDateTime(date: Date): LocalDateTime
Converts a
Converts a
Date
into a
LocalDateTime
.
- date
The given date to convert.
- def getMillisSinceEpoch(date: LocalDateTime): Long
Gets the count of milliseconds since epoch from a given datetime.
Gets the count of milliseconds since epoch from a given datetime.
- date
The given datetime.
- def getTimestamp(date: LocalDateTime): Timestamp
Converts a
Converts a
LocalDateTime
into a
Timestamp
.
- date
The given date to convert.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def inTimelineFormat(date: LocalDateTime): String
Formats the datetime using the default formats timelineFormat and timelineFormatLive.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLive(date: LocalDateTime): Boolean
Is true if the given datetime has a time part and is not
Is true if the given datetime has a time part and is not
LocalDateTime.MIN
or
LocalDateTime.MAX
- date
The given datetime.
- def matches(date: LocalDateTime, cronExpr: String): Boolean
- val maxDate: LocalDateTime
A value that may be used as maximum value for
A value that may be used as maximum value for
LocalDateTime
. It is used because
LocalDateTime.MAX
will trigger errors in some parsing/formatting situations.
- val minDate: LocalDateTime
A value that may be used as minimum value for
A value that may be used as minimum value for
LocalDateTime
. It is used because
LocalDateTime.MIN
will trigger errors in some parsing/formatting situations.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val optionsFormat: DateTimeFormatter
The format for dates used in configuration options (yyyy.MM.dd).
- def parseLocalDate(date: String, formatter: DateTimeFormatter): LocalDateTime
Parses a given date string into a datetime using a specific format.
Parses a given date string into a datetime using a specific format.
- date
The given date string.
- formatter
The formatter to use.
- def parseLocalDate(date: String, formatString: String): LocalDateTime
Parses a given date string into a datetime using a specific format.
Parses a given date string into a datetime using a specific format.
- date
The given date string.
- formatString
The format string to use.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timelineFormat: DateTimeFormatter
The default format for datetimes with no time part (yyyy-MM-dd).
- val timelineFormatLive: DateTimeFormatter
The default format for datetimes with time part (yyyy-MM-dd HH:mm:ss).
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)