Via Nathan Curtis: A method on Builder to set the TimeZone.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2747 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-02-11 22:03:26 +00:00
parent acb2fffb0a
commit e6970e1c91
@@ -104,6 +104,12 @@ public class Calendars
return zeroTime(); return zeroTime();
} }
/** See {@link Calendar#setTimeZone(TimeZone)}. */
public Builder in (TimeZone zone) {
_calendar.setTimeZone(zone);
return this;
}
/** Zeros out the time fields of this calendar, preserving only the date. */ /** Zeros out the time fields of this calendar, preserving only the date. */
public Builder zeroTime () { public Builder zeroTime () {
_calendar.set(Calendar.HOUR_OF_DAY, 0); _calendar.set(Calendar.HOUR_OF_DAY, 0);