Adds delta
to this TimeLike
.
Adds delta
to this TimeLike
. Adding Duration.Top
results
in the TimeLike
's Top
, adding Duration.Bottom
results in
the TimeLike
's Bottom
.
Creates a duration between two times.
The difference between the two TimeLike
s
Rounds down to the nearest multiple of the given duration.
Rounds down to the nearest multiple of the given duration. For example: 127.seconds.floor(1.minute) => 2.minutes. Taking the floor of a Time object with duration greater than 1.hour can have unexpected results because of timezones.
Formats this Time according to the given SimpleDateFormat pattern and locale.
Formats this Time according to the given SimpleDateFormat pattern.
The TimeLike
's value in nanoseconds.
Returns a value/TimeUnit
pair; attempting to return coarser
grained values if possible (specifically: TimeUnit.SECONDS
or
TimeUnit.MILLISECONDS
) before resorting to the default
TimeUnit.NANOSECONDS
.
Returns a value/TimeUnit
pair; attempting to return coarser
grained values if possible (specifically: TimeUnit.SECONDS
or
TimeUnit.MILLISECONDS
) before resorting to the default
TimeUnit.NANOSECONDS
.
Is this a finite TimeLike value?
Equality within maxDelta
Equality within maxDelta
Duration that has passed between the given time and the current time.
Duration that has passed between the epoch and the current time.
Gets the current time as Duration since now
Converts this Time object to a java.
Converts this Time object to a java.util.Date
Renders this time using the default format.
Renders this time using the default format.
Duration between current time and the givne time.
Gets the duration between this time and the epoch.
Gets the duration between this time and now.
Duration that has passed between the epoch and the current time.
Duration that has passed between the epoch and the current time.
(Since version 2011-05-23) use sinceEpoch
An absolute point in time, represented as the number of nanoseconds since the Unix epoch.