Def
Less
Less
Returns true
if current value is less than given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Less or equal
Less or equal
Returns true
if current value is less or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Range
Range
Returns Range from current to given value
Note. Range uses base primitive natural ordering
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Exclusive end range
Exclusive end range
Returns Range from current to given value exclusive
Note. Range uses base primitive natural ordering
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Greater
Greater
Returns true
if current value is greater than given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Greater or equal
Greater or equal
Returns true
if current value is greater or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
To option
To option
Returns Long specialized option
- Inherited from
- _methods
- Source
- Base.scala
Format
Format
Formats time with given pattern
See java.text.SimpleDateFormat for details
val t: Time=VOID
t.format("hh 'o`clock' a, z z z z").tp // Prints: 07 o'clock PM, Eastern Standard Time
t.format("yyyy.MM.dd G 'at' HH:mm:ss z").tp // Prints: 1969.12.31 AD at 19:00:00 EST
t.format("EEE, MMM d, `yy").tp // Prints: Wed, Dec 31, '69
t.format("h:mm a").tp // Prints: 7:00 PM
- Source
- __.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
Max value
Max value
Returns maximum of current or given value
- Inherited from
- z_MethodsBase
- Source
- Ordered.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
Min value
Min value
Returns minimun of current or given value
- Inherited from
- z_MethodsBase
- Source
- Ordered.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
Skip to next
Skip to next
Finds next greater instance of time with given DayTime
Note: The result may skip to next day
val time = 2018.Year.start
time.tp // Prints: 2018-01-01 0:00:00
time.skipTo(16.Hours).tp // Prints: 2018-01-01 16:00:00
time.skipTo(16.Hours).skipTo(10.Hours).tp // Prints: 2018-01-02 10:00:00
- Source
- __.scala
Short String.
Short String.
Time is rounded to 1.Second.
For current Day, day portion is ommited.
- Inherited from
- Base
- Source
- Base.scala