diff --git a/src/java/com/samskivert/util/Calendars.java b/src/java/com/samskivert/util/Calendars.java index f44087de..a1daade6 100644 --- a/src/java/com/samskivert/util/Calendars.java +++ b/src/java/com/samskivert/util/Calendars.java @@ -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. */