/* * Copyright 2008 Jeff Dwyer * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ /* * Simple Date Picker Widget for GWT library of Google, Inc. * * Copyright (c) 2006 Parvinder Thapar * http://psthapar.googlepages.com/ * * This library is free software; you can redistribute * it and/or modify it under the terms of the GNU Lesser * General Public License as published by the Free Software * Foundation; either version 2.1 of the License, or * (at your option) any later version. This library is * distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNULesser General Public License for more details. * You should have received a copy of the GNU Lesser General * PublicLicense along with this library; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package com.apress.progwt.client.widget.datepicker; /* * Interface DateConstants contains all the static data * pertaining to the dates. Currently uses English for * all the month names. Might need to change this to use * internationalized characters for the calendar to support * different languages */ public interface DateConstants { public final static int SUNDAY=0; public final static int MONDAY=1; public final static int TUESDAY=2; public final static int WEDNESDAY=3; public final static int THURSDAY=4; public final static int FRIDAY=5; public final static int SATURDAY=6; public final static String[] MONTHS = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; public static int [] maxDaysinMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; public static final long numMilliSecsInAYear = 31536000000l; public static final long NUM_MILLISECS_A_DAY = (24*60*60*1000); }