-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-16316 test: make it a warning if a currency code recently expired
- 7 months time window - refactor time code somewhat - refactor print per review comment
- Loading branch information
Showing
6 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tools/cldr-code/src/main/java/org/unicode/cldr/util/DateConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.unicode.cldr.util; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* Some date related constants | ||
*/ | ||
public class DateConstants { | ||
/** | ||
* Right now. A single constant so that it is consistent across callers. | ||
*/ | ||
public static final Date NOW = new Date(); | ||
public static final long MILLIS_PER_SECOND = 60 * 1000; | ||
public static final long MILLIS_PER_MINUTE = MILLIS_PER_SECOND * 60; | ||
public static final long MILLIS_PER_HOUR = MILLIS_PER_MINUTE * 60; | ||
public static final long MILLIS_PER_DAY = MILLIS_PER_HOUR * 24; | ||
public static final long MILLIS_PER_MONTH = MILLIS_PER_DAY * 30; | ||
|
||
/** | ||
* A date a little less than 8 months ago. | ||
*/ | ||
public static final Date RECENT_HISTORY = new Date(NOW.getTime() - (MILLIS_PER_MONTH * 8)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters