View Javadoc

1   /*
2    * The contents of this file are subject to the terms 
3    * of the Common Development and Distribution License 
4    * (the "License").  You may not use this file except 
5    * in compliance with the License.
6    * 
7    * You can obtain a copy of the license at 
8    * http://www.sun.com/cddl/cddl.html. 
9    * See the License for the specific language governing 
10   * permissions and limitations under the License.
11   * 
12   * When distributing Covered Code, include this CDDL 
13   * HEADER in each file and include the License file at 
14   * license.txt.  If applicable, add the following below 
15   * this CDDL HEADER, with the fields enclosed by brackets 
16   * "[]" replaced with your own identifying information: 
17   * Portions Copyright [yyyy] [name of copyright owner]
18   * 
19   * Portions Copyright 2004 eBay, Inc.
20   */
21  package com.ebay.carad.os.vitalsigns.util;
22  
23  
24  /***
25   * Constants interface for ms-based time constants.
26   * 
27   * @author Jeremy Kraybill
28   * @version $Id$
29   */
30  public interface ITimeConstants {
31  
32      /*** 1,000 milliseconds. */
33      public static final long SECOND = 1000;
34      /*** 60,000 milliseconds. */
35      public static final long MINUTE = 60 * SECOND;
36      /*** 3,600,000 milliseconds. */
37      public static final long HOUR = 60 * ITimeConstants.MINUTE;
38      /*** 86,400,000 milliseconds. */
39      public static final long DAY = 24 * HOUR;
40      /*** 604,800,000 milliseconds. */
41      public static final long WEEK = 7 * ITimeConstants.DAY;
42      /*** 2,419,200,000 milliseconds (4 weeks). */
43      public static final long MONTH = 28 * DAY;
44      /*** 31,449,600,000 milliseconds. */
45      public static final long FIFTYTWOWEEKS = 52 * WEEK;
46      /*** 31,536,000,000 milliseconds (365 days). */
47      public static final long YEAR = 365 * DAY;
48  
49  }