- All Implemented Interfaces:
Clock
, Serializable
@ThreadSafe
public class SystemClock
extends Object
implements Clock
Clock implementation that proxies to the real system clock.
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
org.joda.time.DateTime
Returns the current time.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SystemClock
@Inject
public SystemClock()
-
Method Details
-
nowUtc
public org.joda.time.DateTime nowUtc()
Returns the current time.
- Specified by:
nowUtc
in interface Clock