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:
@@ -96,6 +96,12 @@ public class Calendars
|
|||||||
return this;
|
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
|
/** 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:
|
* 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> */
|
* <pre>Calendars.in(zone).at(2009, Calendar.JANUARY, 1)</pre> */
|
||||||
|
|||||||
Reference in New Issue
Block a user