object EnrichedDT
- Alphabetic
- By Inheritance
- EnrichedDT
- 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
-
def
apply(epoch: Long)(implicit dateFormat: DateFormat, timeZone: ZoneId): EnrichedDT
Auxiliary constructor from epoch seconds with implicit date format and time zone.
-
def
apply(ts: Timestamp)(implicit dateFormat: DateFormat, timeZone: ZoneId): EnrichedDT
Auxiliary constructor from timestamp with implicit date format and time zone.
-
def
apply(instant: Instant)(implicit dateFormat: DateFormat, timeZone: ZoneId): EnrichedDT
Auxiliary constructor from instant with implicit date format and time zone.
-
def
apply(dateString: Option[String])(implicit dateFormat: DateFormat, timeZone: ZoneId): EnrichedDT
Auxiliary constructor from date string with implicit date format and time zone.
-
def
apply(dateFormat: DateFormat, timeZone: ZoneId, epoch: Long): EnrichedDT
Builds EnrichedDT instance from Unix epoch (in seconds)
Builds EnrichedDT instance from Unix epoch (in seconds)
- dateFormat
Date format
- timeZone
Time zone
- epoch
Unix epoch
- returns
EnrichedDT instance
-
def
apply(dateFormat: DateFormat, timeZone: ZoneId, ts: Timestamp): EnrichedDT
Builds EnrichedDT instance from UTC timestamp.
Builds EnrichedDT instance from UTC timestamp.
- dateFormat
Date format
- timeZone
Time zone
- ts
UTC timestamp
- returns
EnrichedDT instance
-
def
apply(dateFormat: DateFormat, timeZone: ZoneId, instant: Instant): EnrichedDT
Builds EnrichedDT instance from instant.
Builds EnrichedDT instance from instant.
- dateFormat
Date format
- timeZone
Time zone
- instant
Instant object
- returns
EnrichedDT instance.
-
def
apply(dateFormat: DateFormat, timeZone: ZoneId, dateString: Option[String] = None): EnrichedDT
Builds EnrichedDT instance from optional date string: parses date string into ZonedDateTime.
Builds EnrichedDT instance from optional date string: parses date string into ZonedDateTime.
The problem with date string parsing is that if format contains only date part then it is only possible to retrieve LocalDate. An attempt retrieve LocalDateTime for such format will throw an exception. The same is true when format contains only time part. In this case it is only possible to retrieve LocalTime. Thus, parsing of date string has chained all these attempts with following priority:
- try to get LocalDateTime
- try to get LocalDate
- try to get LocalTime First one to succeed will be returned. If none of these attempts succeeds then exception will be thrown.
If no date string provided then builds EnrichedDT instance with datetime set to current datetime.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()