Packages

class EnrichedDT extends AnyRef

Wrapper over datetime string with predefined format and time zone. Used to yield various datetime objects and operate with them.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnrichedDT
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnrichedDT(dateFormat: DateFormat, timeZone: ZoneId, zonedDT: ZonedDateTime)

    dateFormat

    Datetime format

    timeZone

    Time zone

    zonedDT

    Zoned date time wrapped into EnrichedDT instance.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val dateFormat: DateFormat
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getDateTime: ZonedDateTime

    Zoned DateTime getter

    Zoned DateTime getter

    returns

    Current ZonedDateTime

  12. def getUtcTS: Timestamp

    Transforms ZonedDateTime to timestamp at UTC time zone

    Transforms ZonedDateTime to timestamp at UTC time zone

    returns

    Timestamp at UTC tz

  13. def getUtcTsWithOffset(offset: Duration): Timestamp

    Offsets current datetime back for a given offset and transforms new value to timestamp at UTC time zone.

    Offsets current datetime back for a given offset and transforms new value to timestamp at UTC time zone.

    offset

    Offset from current datetime (duration)

    returns

    Timestamp at UTC tz with offset

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def render: String

    Render ZonedDateTime to a string with predefined format

    Render ZonedDateTime to a string with predefined format

    returns

    DateTime string

  20. def resetToCurrentTime: EnrichedDT

    Returns a new EnrichedDT instance with the same date format and time zone, but with time being set to current time.

    Returns a new EnrichedDT instance with the same date format and time zone, but with time being set to current time.

    returns

    New instance of EnrichedDT for current time.

  21. def setTo(instant: Instant): EnrichedDT
  22. def setTo(epoch: Long): EnrichedDT
  23. def setTo(ts: Timestamp): EnrichedDT
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. val timeZone: ZoneId
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. def withOffset(offset: Duration): EnrichedDT

    Creates new EnrichedDT instance by offsetting current one by offset duration.

    Creates new EnrichedDT instance by offsetting current one by offset duration. Maximum offset precision is seconds.

    offset

    Offset duration (backwards)

    returns

    New EnrichedDT instance with offset

  31. val zonedDT: ZonedDateTime
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped