A Day is a {@link Time2} with day resolution.The domain label is
daily.
Here are four equivalent ways of constructing daily
times:
TimeIndex day1 = new Day("2005-01-01"); TimeIndex day2 = Day.DOMAIN.time("2005-01-01"); TimeIndex day3 = TimeDomainManager.getFactory() .get("daily").time("2005-01-01"); TimeIndex day4 = TimeDomainManager.getFactory() .get(new TimeDomainDefinition("daily", Resolution.DAY, 0L), true) .time("2005-01-01"); assertSame(day1.getTimeDomain(), day2.getTimeDomain()); assertSame(day1.getTimeDomain(), day3.getTimeDomain()); assertSame(day1.getTimeDomain(), day4.getTimeDomain());
@author Jean-Paul Vetterli