org.infinitest.toolkit.datetime
Interface TimeSource
- All Known Implementing Classes:
- FakeTimeSource, SystemClockTimeSource
public interface TimeSource
When you write classes that need some notion of the current date/time, use an instance of this interface
instead. That way, your class does not depend directly on the system clock and you can feed your class
an instance primed with a specific "now" date/time.
- Author:
- Paul Holser
now
Date now()
© Copyright 2009 Paul R. Holser, Jr. All rights reserved. pholser@alumni.rice.edu