1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 }