Added a setTime(long) to Calendars.Builder.

This commit is contained in:
Ray J. Greenwell
2012-02-23 09:39:37 +08:00
parent 874668e696
commit c0b27d469a
@@ -87,6 +87,12 @@ public class Calendars
return this;
}
/** See {@link Calendar#setTimeInMillis}. */
public Builder setTime (long millis) {
_calendar.setTimeInMillis(millis);
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> */