public interface TimeSource
new Date()
and
System.currentTimeMillis()
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Return current timestamp in milliseconds.
|
java.util.Date |
currentTimestamp()
Return current timestamp as Date instance.
|
java.time.ZonedDateTime |
now()
Return
ZonedDateTime for current timestamp. |
static final java.lang.String NAME
java.util.Date currentTimestamp()
long currentTimeMillis()
java.time.ZonedDateTime now()
ZonedDateTime
for current timestamp.