|
Lines 311-318
public class GenerateCurrencyData {
Link Here
|
| 311 |
checkCurrencyCode(newCurrency); |
311 |
checkCurrencyCode(newCurrency); |
| 312 |
String timeString = currencyInfo.substring(4, length - 4); |
312 |
String timeString = currencyInfo.substring(4, length - 4); |
| 313 |
long time = format.parse(timeString).getTime(); |
313 |
long time = format.parse(timeString).getTime(); |
| 314 |
if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) { |
314 |
if (Math.abs(time - System.currentTimeMillis()) > ((long) 40) * 365 * 24 * 60 * 60 * 1000) { |
| 315 |
throw new RuntimeException("time is more than 10 years from present: " + time); |
315 |
throw new RuntimeException("time is more than 40 years from present: " + time); |
| 316 |
} |
316 |
} |
| 317 |
specialCaseCutOverTimes[specialCaseCount] = time; |
317 |
specialCaseCutOverTimes[specialCaseCount] = time; |
| 318 |
specialCaseOldCurrencies[specialCaseCount] = oldCurrency; |
318 |
specialCaseOldCurrencies[specialCaseCount] = oldCurrency; |