Class of the Month: GregorianCalendar Tennessee

Subclasses of Calendar interpret a date according to the rules of a specific calendar system. One such subclass is java.util.GregorianCalendar. You can use the methods and properties of GregorianCalendar for many of your date and time calculations and comparisons.

Local Companies

Computer Services
615-252-8044
230 Willow St
Nashville, TN
Simple Solutions
(901) 289-0089
4499 Seven Valley Cove
Memphis, TN
Cyberangel Security Solutions Inc
615-837-9191
475 Metroplex DR
Nashville, TN
C M S Manufacturing Systems
615-662-3102
131 Belle Forest Cir
Nashville, TN
Impressive Publshing
423-239-4656
1400 E. Shipley Ferry Rd.
Kingsport, TN
Advanced Technical Services
615-747-5810
200 Hill Ave
Nashville, TN
Expeditors International
(901) 362-9771
5395 Distriplex Farms Drive
Memphis, TN
Advanced Network Solutions
615-277-0500
105 Broadway
Nashville, TN
Peachtree Software Support
615-256-1111
415 4th Ave S
Nashville, TN
Cbnc LLC
615-831-3270
5360 Edmondson Pike
Nashville, TN

provided by: 
Originally published at Internet.com


Business applications often require date and time calculations. Furthermore, in a global environment, these calculations must be localized for various geographical regions in which the application is running. The Java platform took a huge step in streamlining the way it deals with date and time by introducing the abstract java.util.Calendar class. Subclasses of Calendar interpret a date according to the rules of a specific calendar system. One such subclass is java.util.GregorianCalendar. You can use the methods and properties of GregorianCalendar for many of your date and time calculations and comparisons.

Piroz Mohseni

You have a few choices with the constructor. If you are happy with the default time zone and default locale object, then you can use the null constructor (no arguments) or one of the constructors that allows you to specify the year, month, date, hour, and minutes. For applications that could potentially be used in different regions, you probably want to be more specific about the Locale and TimeZone objects. There are constructors that allow you to specify a Locale, a TimeZone, or both to create the GregorianCalendar object. If you are going to use TimeZone, take a look at java.util.SimpleTimeZone, which is a concrete subclass of TimeZone. " The GreogorianCalendar class offers most of the information and calculations a typical date-based application needs." ...

Read article at Internet.com site

Featured Local Company

Advanced Technical Services

615-747-5810
200 Hill Ave
Nashville, TN

Related Articles
- Some Insight Into Inner Classes in Java, Part 1 Tennessee
Inner classes can simplify some design by enriching the classes in which they are defined. They might add a "facet" to the behavior of an enclosing class, thus enriching its interactions with other classes. They can also be used as access control points where the inner class can be used to provide controlled access to some resource or to define isolated callbacks or to other beneficial purposes.
- Class of the Month: JDK 1.4 Supports Regular Expressions Tennessee
- Application Logs and the Logger Class Tennessee
- Use the BodyTagSupport Class to Add More Flexibility to JSP Pages Tennessee
- Class of the Month: The Reflection API Tennessee
- Class of the Month: Making HTTP Connections Tennessee
- Class of the Month: Control Event Executions with the New Timer Class Tennessee
- Tacit Records: The Java Class Loader Tennessee
- SJCP Exam Preparation: Top-level and Inner Classes Tennessee
- Class of the Month: JSP Tag Libraries and the TagSupport Class Tennessee
Regional Articles
- Class of the Month: GregorianCalendar Antioch TN
- Class of the Month: GregorianCalendar Ashland City TN
- Class of the Month: GregorianCalendar Brentwood TN
- Class of the Month: GregorianCalendar Bristol TN
- Class of the Month: GregorianCalendar Chattanooga TN
- Class of the Month: GregorianCalendar Clarksville TN
- Class of the Month: GregorianCalendar Cleveland TN
- Class of the Month: GregorianCalendar Collierville TN
- Class of the Month: GregorianCalendar Columbia TN
- Class of the Month: GregorianCalendar Cookeville TN
- Class of the Month: GregorianCalendar Cordova TN
- Class of the Month: GregorianCalendar Crossville TN
- Class of the Month: GregorianCalendar Dickson TN
- Class of the Month: GregorianCalendar Dyersburg TN
- Class of the Month: GregorianCalendar Elizabethton TN
- Class of the Month: GregorianCalendar Franklin TN
- Class of the Month: GregorianCalendar Gallatin TN
- Class of the Month: GregorianCalendar Germantown TN
- Class of the Month: GregorianCalendar Goodlettsville TN
- Class of the Month: GregorianCalendar Greeneville TN
- Class of the Month: GregorianCalendar Harriman TN
- Class of the Month: GregorianCalendar Hendersonville TN
- Class of the Month: GregorianCalendar Hermitage TN
- Class of the Month: GregorianCalendar Hixson TN
- Class of the Month: GregorianCalendar Humboldt TN
- Class of the Month: GregorianCalendar Jackson TN
- Class of the Month: GregorianCalendar Johnson City TN
- Class of the Month: GregorianCalendar Jonesborough TN
- Class of the Month: GregorianCalendar Kingsport TN
- Class of the Month: GregorianCalendar Knoxville TN
- Class of the Month: GregorianCalendar La Follette TN
- Class of the Month: GregorianCalendar La Vergne TN
- Class of the Month: GregorianCalendar Lebanon TN
- Class of the Month: GregorianCalendar Lenoir City TN
- Class of the Month: GregorianCalendar Loudon TN
- Class of the Month: GregorianCalendar Madison TN
- Class of the Month: GregorianCalendar Martin TN
- Class of the Month: GregorianCalendar Maryville TN
- Class of the Month: GregorianCalendar Mc Minnville TN
- Class of the Month: GregorianCalendar Memphis TN
- Class of the Month: GregorianCalendar Millington TN
- Class of the Month: GregorianCalendar Morristown TN
- Class of the Month: GregorianCalendar Mount Juliet TN
- Class of the Month: GregorianCalendar Murfreesboro TN
- Class of the Month: GregorianCalendar Nashville TN
- Class of the Month: GregorianCalendar Oak Ridge TN
- Class of the Month: GregorianCalendar Old Hickory TN
- Class of the Month: GregorianCalendar Ooltewah TN
- Class of the Month: GregorianCalendar Ripley TN
- Class of the Month: GregorianCalendar Rogersville TN
- Class of the Month: GregorianCalendar Sevierville TN
- Class of the Month: GregorianCalendar Shelbyville TN
- Class of the Month: GregorianCalendar Signal Mountain TN
- Class of the Month: GregorianCalendar Smyrna TN
- Class of the Month: GregorianCalendar Soddy Daisy TN
- Class of the Month: GregorianCalendar Tullahoma TN

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML