advertisement

Gregorian calendar class

50 %
50 %
advertisement
Information about Gregorian calendar class
Education

Published on February 24, 2014

Author: nontawatwongnuk

Source: slideshare.net

advertisement

GregorianCalendar Class

New GregorianCalendar () setGregorianChange() New GregorianCalendar (object_locale) getActualMaximum() New GregorianCalendar (year,month,day) getActualMinimum() New GregorianCalendar (year,month,day,minute) isLeapYear()

new GregorianCalendar () Object GregorianCalendar timezone method : new GregorianCalendar (); return type : GregorianCalendar content : Object GregorianCalendar timezone (timezone ) example : GregorianCalendar gregorian_calendar = new GregorianCalendar (); Back

new GregorianCalendar (object_locale) Object GregorianCalendar timezone Locale method : new GregorianCalendar ( object_locale ); return type : GregorianCalendar content : Object GregorianCalendar timezone Locale (Locale = ) example : Locale locale = new Locale ( "th", "TH" ); GregorianCalendar gregorian_calendar = new Back GregorianCalendar ( locale );

new GregorianCalendar(year,mon th,day) GregorianCalendar Object method : new GregorianCalendar ( year, month, day ); return type : GregorianCalendar content : Object GregorianCalendar example : GregorianCalendar gregorian_calendar = new GregorianCalendar ( 2012, 12, 12 ); Back

new GregorianCalendar ( year, month, day, hour, minu te ); Object GregorianCalendar method : new GregorianCalendar ( year, month, day, hour, minute ); return type : GregorianCalendar content : Object GregorianCalendar example : GregorianCalendar gregorian_calendar = new GregorianCalendar ( 2012, 12, 12, 0, 0 ); Back

setGregorianChange() object GregorianCalendar method : setGregorianChange ( object_date ); return type : void content : object GregorianCalendar example : GregorianCalendar gregorian_calendar = new GregorianCalendar ( 2012, 12, 12, 0, 0 ); Date date = new Date (); gregorian_calendar.setGregorianChange ( date ); Back

getActualMaximum() method : getActualMaximum ( calendar_constant ); return type : int content : example : GregorianCalendar gregorian_calendar = new GregorianCalendar ( 2012, 12, 12, 0, 0 ); int max_year = gregorian_calendar.getActualMaximum ( Calendar.YEAR ); int max_month = Back gregorian_calendar.getActualMaximum ( Calendar.MONTH );

getActualMinimum() method : getActualMinimum ( calendar_constant ); return type : int content : example : GregorianCalendar gregorian_calendar = new GregorianCalendar ( 2012, 12, 12, 0, 0 ); int min_year = gregorian_calendar.getActualMinimum ( Calendar.YEAR ); int min_month = Back gregorian_calendar.getActualMinimum ( Calendar.MONTH );

isLeapYear() leap year method : isLeapYear ( year ); return type : boolean content : leap year example : GregorianCalendar gregorian_calendar = new GregorianCalendar (); if ( gregorian_calendar.isLeapYear ( 2009 ) ) { System.out.println ( "2007 is leap year." ); } Back

Add a comment

Related presentations

Related pages

GregorianCalendar (Java Platform SE 7 ) - Oracle

Class GregorianCalendar. java.lang.Object; ... GregorianCalendar is a hybrid calendar that supports both the Julian and Gregorian calendar systems with the ...
Read more

Calendar (Java Platform SE 7 ) - Oracle Help Center

The Calendar class is an abstract class that provides methods for converting between ... a Calendar for the Gregorian calendar system returns 28 for ...
Read more

GregorianCalendar Class (System.Globalization)

The Gregorian calendar was developed as a replacement for the Julian calendar (which is represented by the JulianCalendar class) and was first introduced ...
Read more

Java .util.GregorianCalendar Class - TutorialsPoint

The java.util.GregorianCalendar class is a concrete subclass of Calendar and provides the standard calendar system used by most of the world.Following are ...
Read more

GregorianCalendar | Android Developers

GregorianCalendar. public class GregorianCalendar extends Calendar. ... To obtain a pure Gregorian calendar, set the change date to Date(Long.MIN_VALUE).
Read more

Java's java.util.Calendar and GregorianCalendar - Jenkov.com

Java's java.util.Calendar class is used to do date and time arithmetic. Whenever you have something slightly more advanced than just representing a date ...
Read more

GregorianCalendar-Klasse (System.Globalization)

(Setzt "Calendar.AlgorithmType" außer Kraft.) ... public class Example ... ("Last date (Gregorian): {0:d} ...
Read more

Year 2016 Calendar - Time and Date Calendar

Calendar type: Gregorian calendar; Tools. Years with Same Calendar as 2016; Customization Forms. Customize this calendar–large – advanced form with ...
Read more

Class java.util.GregorianCalendar - University of Pennsylvania

public class GregorianCalendar extends Calendar GregorianCalendar is a concrete subclass of Calendar and provides the standard calendar used by most of the ...
Read more

Java Date and Calendar examples - Mkyong

Java Date and Calendar examples. By mkyong | October 21, 2013 | Updated : January 22, 2015 | Viewed : 713,323 times +5,352 pv/w. This tutorial shows you ...
Read more