Added a setTime(long) to Calendars.Builder.
This commit is contained in:
@@ -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> */
|
||||
|
||||
Reference in New Issue
Block a user