KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > util > Clock


1 package org.oddjob.util;
2
3 import java.util.Date JavaDoc;
4
5 /**
6  * A clock is used by a schedule to tell the time. The clock could
7  * use the system time or the time in a different time zone, or a
8  * time server, or some other means of telling the time.
9  *
10  * @author Rob Gordon
11  */

12
13 public interface Clock {
14
15     /**
16      * Return the java date for the current time by the clock.
17      *
18      * @return The date.
19      */

20     public Date JavaDoc getDate();
21 }
22
Popular Tags