public interface Clock
| Modifier and Type | Method and Description |
|---|---|
Date |
now()
Returns the current date/time.
|
Date now()
Date.
However, in order to protect against date/time forgery, a more
sophisticated implementation should use an authoritative time source,
e.g. a radio clock, an Internet time server or extrapolate an
approximation from timestamps in input data.
If resolving the current date/time from an authoritative resource fails
for any reason, the implementation should simply fallback to return a
new Date.Copyright © 2005–2017 Schlichtherle IT Services. All rights reserved.