}
// convert "difficult" calendars to Day and increase resolution to milliseconds
private static long yearOrMonthToMillisecSinceEpoch (long year, int month) throws T2Exception {
TimeIndex m = Day.DOMAIN.time(year, month, 1, 0, 0, 0, 0, Adjustment.NONE);
long index = m.asLong() * 24L * 3600000L;
return index = index - epoch;
}
private static long dayOrLessToMillisecSinceEpoch (TimeIndex t) throws T2Exception {
long index = new SystemTime(t.toString()).asLong();