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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user