xref: /aosp_15_r20/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/DateConstants.java (revision 912701f9769bb47905792267661f0baf2b85bed5)
1 package org.unicode.cldr.util;
2 
3 import java.util.Date;
4 
5 /** Some date related constants */
6 public class DateConstants {
7     /** Right now. A single constant so that it is consistent across callers. */
8     public static final Date NOW = new Date();
9 
10     public static final long MILLIS_PER_SECOND = 60 * 1000;
11     public static final long MILLIS_PER_MINUTE = MILLIS_PER_SECOND * 60;
12     public static final long MILLIS_PER_HOUR = MILLIS_PER_MINUTE * 60;
13     public static final long MILLIS_PER_DAY = MILLIS_PER_HOUR * 24;
14     public static final long MILLIS_PER_MONTH = MILLIS_PER_DAY * 30;
15 
16     /** A date a little less than 8 months ago. */
17     public static final Date RECENT_HISTORY = new Date(NOW.getTime() - (MILLIS_PER_MONTH * 8));
18 }
19