Time.Instant
- Source
- Instant.scala
Def
Local
Current time instant
Current time instant
Getting instant from java.time.Clock.systemUTC.instant
Instant().tp
// Printed no micros or nanos
2021-01-21 09:36:31.766.000.000
// Apparently not every JVM supports precise clock
- Source
- Instant.scala
Inherited inherited
Day.
Day.
Day, which includes this
time instance.
- Inherited from
- Base
- Source
- Base.scala
Day count
Day count
Total days (24.Hours) which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
DayTime component.
DayTime component.
DayTime component of this
time instance.
- Inherited from
- Base
- Source
- Base.scala
Hours remainder
Hours remainder
Hours remainder when rounded by whole day (24 hours)
Value range is from 0 to 23
- Inherited from
- Nanos
- Source
- Nanos.scala
Hours count
Hours count
Total hours which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Type to Info
Type to Info
Override this method to provide type standard Info implementation
- Inherited from
- Type
- Source
- Type.scala
Check if in future.
Check if in future.
Returns true
if this time is greater than current.
- Inherited from
- Base
- Source
- Base.scala
Check if in past.
Check if in past.
Returns true
if this time is less or equal to current.
- Inherited from
- Base
- Source
- Base.scala
Range duration
Range duration
Returns Length between this
and that
.
- Inherited from
- Base
- Source
- Base.scala
Microseconds remainder
Microseconds remainder
Microseconds remainder when rounded by whole millisecond
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Microseconds count
Microseconds count
Total microseconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Milliseconds remainder
Milliseconds remainder
Milliseconds remainder when rounded by whole second
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Milliseconds count
Milliseconds count
Total milliseconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Minutes remainder
Minutes remainder
Minutes remainder when rounded by whole hour
Value range is from 0 to 59
- Inherited from
- Nanos
- Source
- Nanos.scala
Minutes count
Minutes count
Total minutes which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Month.
Month.
Month, which includes this
time instance.
- Inherited from
- Base
- Source
- Base.scala
Nanoseconds remainder
Nanoseconds remainder
Nanoseconds remainder when rounded by whole microsecond
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Seconds remainder
Seconds remainder
Seconds remainder when rounded by whole minute
Value range is from 0 to 59
- Inherited from
- Nanos
- Source
- Nanos.scala
Seconds count
Seconds count
Total seconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Short String.
Short String.
Time is rounded to 1.Second.
For current Day, day portion is ommited.
- Inherited from
- Base
- Source
- Base.scala
Year.
Year.
Year, which includes this
time instance.
- Inherited from
- Base
- Source
- Base.scala