Greenwich Mean Time
Time.Gmt is an opaque Long value same as Time, but not localized for printing
val time = Time.current
val gmt = Time.Gmt.current
time.dayTime.tagBrief.tp // Prints: 13:34
gmt.dayTime.tagBrief.tp // Prints: 17:34
// Nevertheless they are data equal
(time.real == gmt.real).tp // Prints: true
- Source
- Gmt.scala
Def
To option
To option
Returns Long specialized option
- Inherited from
- _methods
- 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
- Base
- Source
- Millis.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
Microseconds remainder
Microseconds remainder
Microseconds remainder when rounded by whole millisecond
Value range is from 0 to 999
- Inherited from
- Base
- Source
- Millis.scala
Milliseconds remainder
Milliseconds remainder
Milliseconds remainder when rounded by whole second
Value range is from 0 to 999
- Inherited from
- Base
- Source
- Millis.scala
Minutes remainder
Minutes remainder
Minutes remainder when rounded by whole hour
Value range is from 0 to 59
- Inherited from
- Base
- Source
- Millis.scala
Nanoseconds remainder
Nanoseconds remainder
Nanoseconds remainder when rounded by whole microsecond
Value range is from 0 to 999
- Inherited from
- Base
- Source
- Millis.scala
Real value
Real value
Returns Long value standing behind the opaque type.
This is a zero cost call.
- Inherited from
- _methods
- Source
- Base.scala
Seconds remainder
Seconds remainder
Seconds remainder when rounded by whole minute
Value range is from 0 to 59
- Inherited from
- Base
- Source
- Millis.scala
Short String.
Short String.
Time is rounded to 1.Second.
For current Day, day portion is ommited.
- Inherited from
- Base
- Source
- Base.scala