object DateTimeSupport
Utility class for handling date and time
- Alphabetic
- By Inheritance
- DateTimeSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
. LocalDateTime }}}
- implicit def byOption[T](seq: Seq[T]): ByOptionSequence[T]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
descendingOrder: Ordering[LocalDateTime]
An descending ordering of
An descending ordering of
LocalDateTime
. LocalDateTime }}}
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getLocalDateTime(millis: Long): LocalDateTime
Converts a count of milliseconds since epoch into a
Converts a count of milliseconds since epoch into a
LocalDateTime
. LocalDateTime }}}
-
def
getLocalDateTime(date: Date): LocalDateTime
Converts a
Converts a
Date
into a
LocalDateTime
. LocalDateTime }}} Date }}}
- 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
. Timestamp }}} LocalDateTime }}}
- date
The given date to convert.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
LocalDateTime.MIN }}}
- 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. LocalDateTime.MAX }}} LocalDateTime }}} It is used because
LocalDateTime.MAX
will trigger errors in some parsing/formatting situations. LocalDateTime.MAX }}}
-
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. LocalDateTime.MIN }}} LocalDateTime }}} It is used because
LocalDateTime.MIN
will trigger errors in some parsing/formatting situations. LocalDateTime.MIN }}}
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated