Go ahead and add at least this version of at() from Charlie Groves.

We may add some other at()s, and probably remove all the set*() methods, because
they are not that useful and ambiguous w/r/t HOUR vs. HOUR_OF_DAY, etc.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2621 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2009-08-26 19:39:14 +00:00
parent a2f29dea1d
commit ef344de759
@@ -197,6 +197,17 @@ public class Calendars
return with(calendar);
}
/**
* Returns a fluent wrapper around a calendar configured to Midnight on specified day in the
* specified month and year.
*/
public static Builder at (int year, int month, int day)
{
Calendar calendar = Calendar.getInstance();
calendar.set(year, month, day);
return with(calendar).zeroTime();
}
/**
* Returns a fluent wrapper around a calendar configured with the specified time.
*/