01: /*
02: * @(#)CalendarSystem.java 1.6 06/10/10
03: *
04: * Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26:
27: package sun.util.calendar;
28:
29: import java.util.Calendar;
30:
31: public interface CalendarSystem {
32: public static final int ONE_SECOND = 1 * 1000;
33: public static final int ONE_MINUTE = 60 * ONE_SECOND;
34: public static final int ONE_HOUR = 60 * ONE_MINUTE;
35: public static final int ONE_DAY = 24 * ONE_HOUR;
36:
37: // month constants
38: public static final int JANUARY = Calendar.JANUARY;
39: public static final int FEBRUARY = Calendar.FEBRUARY;
40: public static final int MARCH = Calendar.MARCH;
41: public static final int APRIL = Calendar.APRIL;
42: public static final int MAY = Calendar.MAY;
43: public static final int JUNE = Calendar.JUNE;
44: public static final int JULY = Calendar.JULY;
45: public static final int AUGUST = Calendar.AUGUST;
46: public static final int SEPTEMBER = Calendar.SEPTEMBER;
47: public static final int OCTOBER = Calendar.OCTOBER;
48: public static final int NOVEMBER = Calendar.NOVEMBER;
49: public static final int DECEMBER = Calendar.DECEMBER;
50: public static final int UNDECIMBER = Calendar.UNDECIMBER;
51:
52: // day of week constants
53: public static final int SUNDAY = Calendar.SUNDAY;
54: public static final int MONDAY = Calendar.MONDAY;
55: public static final int TUESDAY = Calendar.TUESDAY;
56: public static final int WEDNESDAY = Calendar.WEDNESDAY;
57: public static final int THURSDAY = Calendar.THURSDAY;
58: public static final int FRIDAY = Calendar.FRIDAY;
59: public static final int SATURDAY = Calendar.SATURDAY;
60: }
|