Package net.avcompris.commons3.utils
Class ClockImpl
java.lang.Object
net.avcompris.commons3.utils.ClockImpl
- All Implemented Interfaces:
Clock
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ClockImpl
public ClockImpl()
-
-
Method Details
-
now
public org.joda.time.DateTime now()This method uses Joda Time to return the current DateTime, always using UTC TimeZone. -
nowMs
public long nowMs()This method uses Joda Time to return the current UNIX time in milliseconds.
-