org.oddjob.util
Class DefaultClock
java.lang.Object
org.oddjob.util.DefaultClock
- All Implemented Interfaces:
- Clock
public class DefaultClock
- extends Object
- implements Clock
A default Clock
that provides the current time.
- Author:
- Rob Gordon
DefaultClock
public DefaultClock()
getDate
public Date getDate()
- Description copied from interface:
Clock
- Return the java date for the current time by the clock.
- Specified by:
getDate
in interface Clock
- Returns:
- The date.
toString
public String toString()
- Overrides:
toString
in class Object