package username.dates; /** * A simple representation of dates. * * @author Samuel A. Rebelsky * @version 1.0 of September 2005 */ public interface SimpleDate { // +---------+----------------------------------------------------------- // | Methods | // +---------+ /** * Determine this date's position in the year. January 1 is the * 1st day of the year, December 31st is the 365th day of the year. */ public int dayOfYear(); /** * Determine the month. Returns a value between 1 and 12. */ public int month(); /** * Determine the day within the month. */ public int day(); /** * Convert to a string of the form MONTH DAY, such as January 10 * or June 17. */ public String toString(); } // interface SimpleDate