Skip to content

Tag Archives: Java-Calendar

XMLGregorianCalendar can be transformed into either java.util.Date or java.sql.Date as per the requirements. JAXB (Java API/XML Bindings Architecture) is a common framework for creating XML… Read More
The roll(int calndr_field, int amt) method in Calendar class is used to operate on the passed calendar field by adding the passed amount to a… Read More
The clear(int cal_field) method in Calendar class is used to set a given calendar field value and the time value of this Calendar undefined. Note:… Read More
The internalGet(int calndr_field) method in Calendar class is used to return the value of the given calendar field as a parameter. Note: The operation does… Read More
The getTimeZone() method in Calendar class is used to return the current time-zone of this Calendar.  Syntax:   public TimeZone getTimeZone() Parameters: The method does not… Read More
The setTimeInMillis(long mill_sec) method in Calendar class is used to set Calendars time represented by this Calendar from the passed long value. Syntax: public void… Read More
The setTimeZone(TimeZone time_zone) method in Calendar class takes a Time Zone value as a parameter and modifies or set the timezone represented by this Calendar.… Read More
The setTime(Date dt) method in Calendar class is used to set Calendars time represented by this Calendar’s time value, with the given or passed date… Read More
The isLenient() method in Calendar class is used to know and understand whether the date and time interpretation of this Calendar is to be considered… Read More
The setLenient(boolean leniency) method in Calendar class is used to specify whether the interpretation of the date and time is to be lenient or not.… Read More
The getTimeInMillis() method in Calendar class is used to return the current time of this Calendar in Milliseconds.Syntax:   public long getTimeInMillis() Parameters: The method does… Read More
The set(int calndr_field, int new_val) method in Calendar class is used to set the calndr_field value to a new_val. The older field of this calendar… Read More
The getMinimum(int calndr_field) method in Calendar class is used to return the Minimum value for the given calendar field(int calndr_field) of this Calendar instance. Syntax:… Read More
The hashCode() method in Calendar class is used to return the hash code for this Calendar Object.Syntax:   public int hashCode() Parameters: The method does not… Read More
The roll(int calndr_field, boolean up_down) method in Calendar class is used to operate on the passed calendar field by moving the passed field, up or… Read More