Modifier and Type | Method and Description |
---|---|
default Instant |
currentTime()
Convenience method for getting an java.util.Instance from currentTimeMillis().
|
long |
currentTimeMillis()
Returns the current time in milliseconds.
|
long currentTimeMillis()
Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.
See the description of the class Date
for a discussion of slight discrepancies that may arise
between "computer time" and coordinated universal time (UTC).
Date
default Instant currentTime()
Copyright © 2018. All rights reserved.