The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week.
Some methods of Calendar
getCalendarType(): This method returns the calendar type of this Calendar.
getDisplayName(int, int, Locale): This method returns the string representation of the calendar field value in the given style and locale.
getDisplayNames(int, int, Locale): This method returns a Map containing all names of the calendar field in the given style and locale and their corresponding field values.
getFirstDayOfWeek(): This method gets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France.
getGreatestMinimum(int): This method returns the highest minimum value for the given calendar field of this Calendar instance.
Calendar.getInstance(): This method gets a calendar using the default time zone and locale.
Calendar.getInstance(Locale): This method gets a calendar using the default time zone and specified locale.
Calendar.getInstance(TimeZone): This method gets a calendar using the specified time zone and default locale.
Calendar.getInstance(TimeZone, Locale): This method gets a calendar with the specified time zone and locale.
getLeastMaximum(int): This method returns the lowest maximum value for the given calendar field in this Calendar instance.
getMaximum(int): This method returns the maximum value for the given calendar field of this Calendar instance.
getMinimalDaysInFirstWeek(): This method gets the minimal days required in the first week of the year.
getMinimum(int): This method returns the minimum value for the given calendar field of this Calendar instance.
getTime(): This method returns a Date object representing this Calendar's time value.
getTimeInMillis(): This method returns this Calendar's time value in milliseconds.
getTimeZone(): This method gets the time zone.
getWeeksInWeekYear(): This method returns the number of weeks in the week year represented by this Calendar.
getWeekYear(): This method returns the week year represented by this Calendar.
Some more Methods of Calendar class Part -I
Some more Methods of Calendar class Part -III
No comments:
Post a Comment