class EnrichedDT extends AnyRef
Wrapper over datetime string with predefined format and time zone. Used to yield various datetime objects and operate with them.
- Alphabetic
- By Inheritance
- EnrichedDT
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
EnrichedDT(dateFormat: DateFormat, timeZone: ZoneId, zonedDT: ZonedDateTime)
- dateFormat
Datetime format
- timeZone
Time zone
- zonedDT
Zoned date time wrapped into EnrichedDT instance.
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val dateFormat: DateFormat
-
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
getDateTime: ZonedDateTime
Zoned DateTime getter
Zoned DateTime getter
- returns
Current ZonedDateTime
-
def
getUtcTS: Timestamp
Transforms ZonedDateTime to timestamp at UTC time zone
Transforms ZonedDateTime to timestamp at UTC time zone
- returns
Timestamp at UTC tz
-
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
-
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()
-
def
render: String
Render ZonedDateTime to a string with predefined format
Render ZonedDateTime to a string with predefined format
- returns
DateTime string
-
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.
- def setTo(instant: Instant): EnrichedDT
- def setTo(epoch: Long): EnrichedDT
- def setTo(ts: Timestamp): EnrichedDT
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val timeZone: ZoneId
-
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()
-
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
-
val
zonedDT: ZonedDateTime
- Attributes
- protected