Calendar.Builder

Class Calendar.Builder

Enclosing class:
Calendar
public static class Calendar.Builder
extends Object

Calendar.Builder is used for creating a Calendar from various date-time parameters.

There are two ways to set a Calendar to a date-time value. One is to set the instant parameter to a millisecond offset from the Epoch. The other is to set individual field parameters, such as YEAR, to their desired values. These two ways can't be mixed. Trying to set both the instant an