Interface Time
-
- All Known Implementing Classes:
SystemTime
public interface Time
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatter
DTF
static Time
SYSTEM
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description long
milliseconds()
Returns the current time in milliseconds.long
nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.void
sleep(Duration duration)
static String
toISODate()
static String
toISODate(long epochTime)
static String
toISODate(long epochTime, ZoneId zoneId)
-
-
-
Field Detail
-
DTF
static final DateTimeFormatter DTF
-
SYSTEM
static final Time SYSTEM
-
-
Method Detail
-
toISODate
static String toISODate()
-
toISODate
static String toISODate(long epochTime)
-
milliseconds
long milliseconds()
Returns the current time in milliseconds.
-
nanoseconds
long nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.
-
sleep
void sleep(Duration duration)
-
-