Via Nathan Curtis: allow the time to be set directly on a builder that

was constructed with a specific zone and locale.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-02-12 01:32:22 +00:00
parent e6970e1c91
commit a6beaab29a
@@ -96,6 +96,12 @@ public class Calendars
return this;
}
/** See {@link Calendar#setTime(Date)}. */
public Builder setTime (Date date) {
_calendar.setTime(date);
return this;
}
/** Sets the time to zero milliseconds after midnight on the specified year, month and
* day. This mirrors {@link Calendars#at} for when you need e.g. a custom timezone:
* <pre>Calendars.in(zone).at(2009, Calendar.JANUARY, 1)</pre> */