summaryrefslogtreecommitdiff
path: root/db/java/src/com/sleepycat/bdb/util/TimeUnits.java
blob: 74f5fe9d4b5102fc37824fd460f3633df480be3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2000-2003
 *      Sleepycat Software.  All rights reserved.
 *
 * $Id: TimeUnits.java,v 1.1 2003/12/15 21:44:12 jbj Exp $
 */

package com.sleepycat.bdb.util;

import java.util.Calendar;
import java.util.Date;

/**
 * Common time unit definitions.
 *
 * @author Mark Hayes
 */
public class TimeUnits {

    /** One second in milliseconds. */
    public static final int  ONE_SECOND = 1000;
    /** One minute in milliseconds. */
    public static final int  ONE_MINUTE = 60 * ONE_SECOND;
    /** One hour in milliseconds. */
    public static final int  ONE_HOUR   = 60 * ONE_MINUTE;
    /** One day in milliseconds. */
    public static final long ONE_DAY    = 24 * ONE_HOUR;
    /** One week in milliseconds. */
    public static final long ONE_WEEK   = 7 * ONE_DAY;
}