Java Doc for Chronology.java in  » Development » Joda-Time » org » joda » time » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Joda Time » org.joda.time 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.joda.time.Chronology

All known Subclasses:   org.joda.time.chrono.BaseChronology,
Chronology
abstract public class Chronology (Code)
Chronology provides access to the individual date time fields for a chronological calendar system.

Various chronologies are supported by subclasses including ISO and GregorianJulian. To construct a Chronology you should use the factory methods on the chronology subclass in the chrono package.

For example, to obtain the current time in the coptic calendar system:

 DateTime dt = new DateTime(CopticChronology.getInstance());
 

The provided chronology implementations are:

  • ISO - Based on the ISO8601 standard and suitable for use after about 1600
  • GJ - Historically accurate calendar with Julian followed by Gregorian
  • Gregorian - The Gregorian calendar system used for all time (proleptic)
  • Julian - The Julian calendar system used for all time (proleptic)
  • Buddhist - The Buddhist calendar system which is an offset in years from GJ
  • Coptic - The Coptic calendar system which defines 30 day months
  • Ethiopic - The Ethiopic calendar system which defines 30 day months
Hopefully future releases will contain more chronologies.

This class defines a number of fields with names from the ISO8601 standard. It does not 'strongly' define these fields however, thus implementations are free to interpret the field names as they wish. For example, a week could be defined as 10 days and a month as 40 days in a special WeirdChronology implementation. Clearly the GJ and ISO implementations provided use the field names as you would expect.
See Also:   org.joda.time.chrono.ISOChronology
See Also:   org.joda.time.chrono.GJChronology
See Also:   org.joda.time.chrono.GregorianChronology
See Also:   org.joda.time.chrono.JulianChronology
See Also:   org.joda.time.chrono.CopticChronology
See Also:   org.joda.time.chrono.BuddhistChronology
See Also:   org.joda.time.chrono.EthiopicChronology
author:
   Stephen Colebourne
author:
   Brian S O'Neill
since:
   1.0





Method Summary
abstract public  longadd(ReadablePeriod period, long instant, int scalar)
     Adds the period to the instant, specifying the number of times to add.
abstract public  longadd(long instant, long duration, int scalar)
     Adds the duration to the instant, specifying the number of times to add.
abstract public  DurationFieldcenturies()
     Get the centuries duration field for this chronology.
abstract public  DateTimeFieldcenturyOfEra()
     Get the century of era field for this chronology.
abstract public  DateTimeFieldclockhourOfDay()
     Get the hour of day (offset to 1-24) field for this chronology.
abstract public  DateTimeFieldclockhourOfHalfday()
     Get the hour of am/pm (offset to 1-12) field for this chronology.
abstract public  DateTimeFielddayOfMonth()
     Get the day of month field for this chronology.
abstract public  DateTimeFielddayOfWeek()
     Get the day of week field for this chronology.
abstract public  DateTimeFielddayOfYear()
     Get the day of year field for this chronology.
abstract public  DurationFielddays()
     Get the days duration field for this chronology.
abstract public  DateTimeFieldera()
     Get the era field for this chronology.
abstract public  DurationFielderas()
     Get the eras duration field for this chronology.
abstract public  int[]get(ReadablePartial partial, long instant)
     Gets the values of a partial from an instant.
abstract public  int[]get(ReadablePeriod period, long startInstant, long endInstant)
     Gets the values of a period from an interval.
abstract public  int[]get(ReadablePeriod period, long duration)
     Gets the values of a period from an interval.
public static  ChronologygetBuddhist()
     Gets an instance of the BuddhistChronology in the default zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543.

public static  ChronologygetBuddhist(DateTimeZone zone)
     Gets an instance of the BuddhistChronology in the specified zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543.

public static  ChronologygetBuddhistUTC()
     Gets an instance of the BuddhistChronology in the UTC zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543.

public static  ChronologygetCoptic()
     Gets an instance of the CopticChronology in the default zone.
public static  ChronologygetCoptic(DateTimeZone zone)
     Gets an instance of the CopticChronology in the specified zone.
public static  ChronologygetCopticUTC()
     Gets an instance of the CopticChronology in the UTC zone.
abstract public  longgetDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay)
     Returns a datetime millisecond instant, formed from the given year, month, day, and millisecond values.
abstract public  longgetDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
     Returns a datetime millisecond instant, formed from the given year, month, day, hour, minute, second, and millisecond values.
abstract public  longgetDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
     Returns a datetime millisecond instant, from from the given instant, hour, minute, second, and millisecond values.
public static  ChronologygetGJ()
     Gets an instance of the GJChronology in the default zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on.

public static  ChronologygetGJ(DateTimeZone zone)
     Gets an instance of the GJChronology in the specified zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on.

public static  ChronologygetGJUTC()
     Gets an instance of the GJChronology in the UTC zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on.

public static  ChronologygetGregorian()
     Gets an instance of the GregorianChronology in the default zone.
public static  ChronologygetGregorian(DateTimeZone zone)
     Gets an instance of the GregorianChronology in the specified zone.
public static  ChronologygetGregorianUTC()
     Gets an instance of the GregorianChronology in the UTC zone.
public static  ChronologygetISO()
     Gets an instance of the ISOChronology in the default zone.
public static  ChronologygetISO(DateTimeZone zone)
     Gets an instance of the ISOChronology in the specified zone.
public static  ChronologygetISOUTC()
     Gets an instance of the ISOChronology in the UTC zone.
public static  ChronologygetJulian()
     Gets an instance of the JulianChronology in the default zone.
public static  ChronologygetJulian(DateTimeZone zone)
     Gets an instance of the JulianChronology in the specified zone.
public static  ChronologygetJulianUTC()
     Gets an instance of the JulianChronology in the UTC zone.
abstract public  DateTimeZonegetZone()
     Returns the DateTimeZone that this Chronology operates in, or null if unspecified.
abstract public  DateTimeFieldhalfdayOfDay()
     Get the AM(0) PM(1) field for this chronology.
abstract public  DurationFieldhalfdays()
     Get the halfdays duration field for this chronology.
abstract public  DateTimeFieldhourOfDay()
     Get the hour of day (0-23) field for this chronology.
abstract public  DateTimeFieldhourOfHalfday()
     Get the hour of am/pm (0-11) field for this chronology.
abstract public  DurationFieldhours()
     Get the hours duration field for this chronology.
abstract public  DurationFieldmillis()
     Get the millis duration field for this chronology.
abstract public  DateTimeFieldmillisOfDay()
     Get the millis of day field for this chronology.
abstract public  DateTimeFieldmillisOfSecond()
     Get the millis of second field for this chronology.
abstract public  DateTimeFieldminuteOfDay()
     Get the minute of day field for this chronology.
abstract public  DateTimeFieldminuteOfHour()
     Get the minute of hour field for this chronology.
abstract public  DurationFieldminutes()
     Get the minutes duration field for this chronology.
abstract public  DateTimeFieldmonthOfYear()
     Get the month of year field for this chronology.
abstract public  DurationFieldmonths()
     Get the months duration field for this chronology.
abstract public  DateTimeFieldsecondOfDay()
     Get the second of day field for this chronology.
abstract public  DateTimeFieldsecondOfMinute()
     Get the second of minute field for this chronology.
abstract public  DurationFieldseconds()
     Get the seconds duration field for this chronology.
abstract public  longset(ReadablePartial partial, long instant)
     Sets the partial into the instant.
abstract public  StringtoString()
     Gets a debugging toString.
abstract public  voidvalidate(ReadablePartial partial, int[] values)
     Validates whether the values are valid for the fields of a partial instant.
abstract public  DateTimeFieldweekOfWeekyear()
     Get the week of a week based year field for this chronology.
abstract public  DurationFieldweeks()
     Get the weeks duration field for this chronology.
abstract public  DateTimeFieldweekyear()
     Get the year of a week based year field for this chronology.
abstract public  DateTimeFieldweekyearOfCentury()
     Get the year of a week based year in a century field for this chronology.
abstract public  DurationFieldweekyears()
     Get the weekyears duration field for this chronology.
abstract public  ChronologywithUTC()
     Returns an instance of this Chronology that operates in the UTC time zone.
abstract public  ChronologywithZone(DateTimeZone zone)
     Returns an instance of this Chronology that operates in any time zone.
abstract public  DateTimeFieldyear()
     Get the year field for this chronology.
abstract public  DateTimeFieldyearOfCentury()
     Get the year of century field for this chronology.
abstract public  DateTimeFieldyearOfEra()
     Get the year of era field for this chronology.
abstract public  DurationFieldyears()
     Get the years duration field for this chronology.



Method Detail
add
abstract public long add(ReadablePeriod period, long instant, int scalar)(Code)
Adds the period to the instant, specifying the number of times to add.
Parameters:
  period - the period to add, null means add nothing
Parameters:
  instant - the instant to add to
Parameters:
  scalar - the number of times to add the updated instant



add
abstract public long add(long instant, long duration, int scalar)(Code)
Adds the duration to the instant, specifying the number of times to add.
Parameters:
  instant - the instant to add to
Parameters:
  duration - the duration to add
Parameters:
  scalar - the number of times to add the updated instant



centuries
abstract public DurationField centuries()(Code)
Get the centuries duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



centuryOfEra
abstract public DateTimeField centuryOfEra()(Code)
Get the century of era field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



clockhourOfDay
abstract public DateTimeField clockhourOfDay()(Code)
Get the hour of day (offset to 1-24) field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



clockhourOfHalfday
abstract public DateTimeField clockhourOfHalfday()(Code)
Get the hour of am/pm (offset to 1-12) field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



dayOfMonth
abstract public DateTimeField dayOfMonth()(Code)
Get the day of month field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



dayOfWeek
abstract public DateTimeField dayOfWeek()(Code)
Get the day of week field for this chronology.

DayOfWeek values are defined in DateTimeConstants . They use the ISO definitions, where 1 is Monday and 7 is Sunday. DateTimeField or UnsupportedDateTimeField if unsupported




dayOfYear
abstract public DateTimeField dayOfYear()(Code)
Get the day of year field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



days
abstract public DurationField days()(Code)
Get the days duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



era
abstract public DateTimeField era()(Code)
Get the era field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



eras
abstract public DurationField eras()(Code)
Get the eras duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



get
abstract public int[] get(ReadablePartial partial, long instant)(Code)
Gets the values of a partial from an instant.
Parameters:
  partial - the partial instant to use
Parameters:
  instant - the instant to query the values of this partial extracted from the instant



get
abstract public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)
Gets the values of a period from an interval.
Parameters:
  period - the period instant to use
Parameters:
  startInstant - the start instant of an interval to query
Parameters:
  endInstant - the start instant of an interval to query the values of the period extracted from the interval



get
abstract public int[] get(ReadablePeriod period, long duration)(Code)
Gets the values of a period from an interval.
Parameters:
  period - the period instant to use
Parameters:
  duration - the duration to query the values of the period extracted from the duration



getBuddhist
public static Chronology getBuddhist()(Code)
Gets an instance of the BuddhistChronology in the default zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543. The chronology cannot be used before year 1 in the Buddhist calendar. the Buddhist chronology




getBuddhist
public static Chronology getBuddhist(DateTimeZone zone)(Code)
Gets an instance of the BuddhistChronology in the specified zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543. The chronology cannot be used before year 1 in the Buddhist calendar.
Parameters:
  zone - the zone to use, null means default zone the Buddhist chronology




getBuddhistUTC
public static Chronology getBuddhistUTC()(Code)
Gets an instance of the BuddhistChronology in the UTC zone.

BuddhistChronology defines all fields using standard meanings, however the year is offset by 543. The chronology cannot be used before year 1 in the Buddhist calendar. the Buddhist chronology




getCoptic
public static Chronology getCoptic()(Code)
Gets an instance of the CopticChronology in the default zone.

CopticChronology defines fields sensibly for the Coptic calendar system. The Coptic calendar system defines every fourth year as leap. The year is broken down into 12 months, each 30 days in length. An extra period at the end of the year is either 5 or 6 days in length and is returned as a 13th month. Year 1 in the Coptic calendar began on August 29, 284 CE (Julian). The chronology cannot be used before the first Coptic year. the Coptic chronology




getCoptic
public static Chronology getCoptic(DateTimeZone zone)(Code)
Gets an instance of the CopticChronology in the specified zone.

CopticChronology defines fields sensibly for the Coptic calendar system. The Coptic calendar system defines every fourth year as leap. The year is broken down into 12 months, each 30 days in length. An extra period at the end of the year is either 5 or 6 days in length and is returned as a 13th month. Year 1 in the Coptic calendar began on August 29, 284 CE (Julian). The chronology cannot be used before the first Coptic year.
Parameters:
  zone - the zone to use, null means default zone the Coptic chronology




getCopticUTC
public static Chronology getCopticUTC()(Code)
Gets an instance of the CopticChronology in the UTC zone.

CopticChronology defines fields sensibly for the Coptic calendar system. The Coptic calendar system defines every fourth year as leap. The year is broken down into 12 months, each 30 days in length. An extra period at the end of the year is either 5 or 6 days in length and is returned as a 13th month. Year 1 in the Coptic calendar began on August 29, 284 CE (Julian). The chronology cannot be used before the first Coptic year. the Coptic chronology




getDateTimeMillis
abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay)(Code)
Returns a datetime millisecond instant, formed from the given year, month, day, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.

The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
Parameters:
  year - year to use
Parameters:
  monthOfYear - month to use
Parameters:
  dayOfMonth - day of month to use
Parameters:
  millisOfDay - millisecond to use millisecond instant from 1970-01-01T00:00:00Z
throws:
  IllegalArgumentException - if the values are invalid




getDateTimeMillis
abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)
Returns a datetime millisecond instant, formed from the given year, month, day, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.

The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
Parameters:
  year - year to use
Parameters:
  monthOfYear - month to use
Parameters:
  dayOfMonth - day of month to use
Parameters:
  hourOfDay - hour to use
Parameters:
  minuteOfHour - minute to use
Parameters:
  secondOfMinute - second to use
Parameters:
  millisOfSecond - millisecond to use millisecond instant from 1970-01-01T00:00:00Z
throws:
  IllegalArgumentException - if the values are invalid




getDateTimeMillis
abstract public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)
Returns a datetime millisecond instant, from from the given instant, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown.

The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
Parameters:
  instant - instant to start from
Parameters:
  hourOfDay - hour to use
Parameters:
  minuteOfHour - minute to use
Parameters:
  secondOfMinute - second to use
Parameters:
  millisOfSecond - millisecond to use millisecond instant from 1970-01-01T00:00:00Z
throws:
  IllegalArgumentException - if the values are invalid




getGJ
public static Chronology getGJ()(Code)
Gets an instance of the GJChronology in the default zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on. Thus there is no year zero.

This method uses the standard Julian to Gregorian cutover date of October 15th 1582. If you require a cutover on a different date, then use the factories on GJChronology itself.

When dealing solely with dates in the modern era, from 1600 onwards, we recommend using ISOChronology, which is the default. the GJ chronology




getGJ
public static Chronology getGJ(DateTimeZone zone)(Code)
Gets an instance of the GJChronology in the specified zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on. Thus there is no year zero.

This method uses the standard Julian to Gregorian cutover date of October 15th 1582. If you require a cutover on a different date, then use the factories on GJChronology itself.

When dealing solely with dates in the modern era, from 1600 onwards, we recommend using ISOChronology, which is the default.
Parameters:
  zone - the zone to use, null means default zone the GJ chronology




getGJUTC
public static Chronology getGJUTC()(Code)
Gets an instance of the GJChronology in the UTC zone.

GJChronology defines all fields using standard meanings. This chronology is intended to be used as a replacement for GregorianCalendar. The Gregorian calendar system is used after October 15, 1582, while the Julian calendar system is used before.

Unlike GregorianCalendar, this chronology returns a year of -1 for 1 BCE, -2 for 2 BCE and so on. Thus there is no year zero.

This method uses the standard Julian to Gregorian cutover date of October 15th 1582. If you require a cutover on a different date, then use the factories on GJChronology itself.

When dealing solely with dates in the modern era, from 1600 onwards, we recommend using ISOChronology, which is the default. the GJ chronology




getGregorian
public static Chronology getGregorian()(Code)
Gets an instance of the GregorianChronology in the default zone.

GregorianChronology defines all fields using standard meanings. It uses the Gregorian calendar rules for all time (proleptic) thus it is NOT a replacement for GregorianCalendar. For that purpose, you should use Chronology.getGJ() .

The Gregorian calendar system defines a leap year every four years, except that every 100 years is not leap, but every 400 is leap.

Technically, this chronology is almost identical to the ISO chronology, thus we recommend using ISOChronology instead, which is the default. the Gregorian chronology




getGregorian
public static Chronology getGregorian(DateTimeZone zone)(Code)
Gets an instance of the GregorianChronology in the specified zone.

GregorianChronology defines all fields using standard meanings. It uses the Gregorian calendar rules for all time (proleptic) thus it is NOT a replacement for GregorianCalendar. For that purpose, you should use Chronology.getGJ() .

The Gregorian calendar system defines a leap year every four years, except that every 100 years is not leap, but every 400 is leap.

Technically, this chronology is almost identical to the ISO chronology, thus we recommend using ISOChronology instead, which is the default.
Parameters:
  zone - the zone to use, null means default zone the Gregorian chronology




getGregorianUTC
public static Chronology getGregorianUTC()(Code)
Gets an instance of the GregorianChronology in the UTC zone.

GregorianChronology defines all fields using standard meanings. It uses the Gregorian calendar rules for all time (proleptic) thus it is NOT a replacement for GregorianCalendar. For that purpose, you should use Chronology.getGJ() .

The Gregorian calendar system defines a leap year every four years, except that every 100 years is not leap, but every 400 is leap.

Technically, this chronology is almost identical to the ISO chronology, thus we recommend using ISOChronology instead, which is the default. the Gregorian chronology




getISO
public static Chronology getISO()(Code)
Gets an instance of the ISOChronology in the default zone.

ISOChronology defines all fields in line with the ISO8601 standard. This chronology is the default, and is suitable for all normal datetime processing. It is unsuitable for historical datetimes before October 15, 1582 as it applies the modern Gregorian calendar rules before that date. the ISO chronology




getISO
public static Chronology getISO(DateTimeZone zone)(Code)
Gets an instance of the ISOChronology in the specified zone.

ISOChronology defines all fields in line with the ISO8601 standard. This chronology is the default, and is suitable for all normal datetime processing. It is unsuitable for historical datetimes before October 15, 1582 as it applies the modern Gregorian calendar rules before that date.
Parameters:
  zone - the zone to use, null means default zone the ISO chronology




getISOUTC
public static Chronology getISOUTC()(Code)
Gets an instance of the ISOChronology in the UTC zone.

ISOChronology defines all fields in line with the ISO8601 standard. This chronology is the default, and is suitable for all normal datetime processing. It is unsuitable for historical datetimes before October 15, 1582 as it applies the modern Gregorian calendar rules before that date. the ISO chronology




getJulian
public static Chronology getJulian()(Code)
Gets an instance of the JulianChronology in the default zone.

JulianChronology defines all fields using standard meanings. It uses the Julian calendar rules for all time (proleptic). The Julian calendar system defines a leap year every four years. the Julian chronology




getJulian
public static Chronology getJulian(DateTimeZone zone)(Code)
Gets an instance of the JulianChronology in the specified zone.

JulianChronology defines all fields using standard meanings. It uses the Julian calendar rules for all time (proleptic). The Julian calendar system defines a leap year every four years.
Parameters:
  zone - the zone to use, null means default zone the Julian chronology




getJulianUTC
public static Chronology getJulianUTC()(Code)
Gets an instance of the JulianChronology in the UTC zone.

JulianChronology defines all fields using standard meanings. It uses the Julian calendar rules for all time (proleptic). The Julian calendar system defines a leap year every four years. the Julian chronology




getZone
abstract public DateTimeZone getZone()(Code)
Returns the DateTimeZone that this Chronology operates in, or null if unspecified. the DateTimeZone, null if unspecified



halfdayOfDay
abstract public DateTimeField halfdayOfDay()(Code)
Get the AM(0) PM(1) field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



halfdays
abstract public DurationField halfdays()(Code)
Get the halfdays duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



hourOfDay
abstract public DateTimeField hourOfDay()(Code)
Get the hour of day (0-23) field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



hourOfHalfday
abstract public DateTimeField hourOfHalfday()(Code)
Get the hour of am/pm (0-11) field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



hours
abstract public DurationField hours()(Code)
Get the hours duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



millis
abstract public DurationField millis()(Code)
Get the millis duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



millisOfDay
abstract public DateTimeField millisOfDay()(Code)
Get the millis of day field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



millisOfSecond
abstract public DateTimeField millisOfSecond()(Code)
Get the millis of second field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



minuteOfDay
abstract public DateTimeField minuteOfDay()(Code)
Get the minute of day field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



minuteOfHour
abstract public DateTimeField minuteOfHour()(Code)
Get the minute of hour field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



minutes
abstract public DurationField minutes()(Code)
Get the minutes duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



monthOfYear
abstract public DateTimeField monthOfYear()(Code)
Get the month of year field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



months
abstract public DurationField months()(Code)
Get the months duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



secondOfDay
abstract public DateTimeField secondOfDay()(Code)
Get the second of day field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



secondOfMinute
abstract public DateTimeField secondOfMinute()(Code)
Get the second of minute field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



seconds
abstract public DurationField seconds()(Code)
Get the seconds duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



set
abstract public long set(ReadablePartial partial, long instant)(Code)
Sets the partial into the instant.
Parameters:
  partial - the partial instant to use
Parameters:
  instant - the instant to update the updated instant



toString
abstract public String toString()(Code)
Gets a debugging toString. a debugging string



validate
abstract public void validate(ReadablePartial partial, int[] values)(Code)
Validates whether the values are valid for the fields of a partial instant.
Parameters:
  partial - the partial instant to validate
Parameters:
  values - the values to validate, not null, match fields in partial
throws:
  IllegalArgumentException - if the instant is invalid



weekOfWeekyear
abstract public DateTimeField weekOfWeekyear()(Code)
Get the week of a week based year field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



weeks
abstract public DurationField weeks()(Code)
Get the weeks duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



weekyear
abstract public DateTimeField weekyear()(Code)
Get the year of a week based year field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



weekyearOfCentury
abstract public DateTimeField weekyearOfCentury()(Code)
Get the year of a week based year in a century field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



weekyears
abstract public DurationField weekyears()(Code)
Get the weekyears duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



withUTC
abstract public Chronology withUTC()(Code)
Returns an instance of this Chronology that operates in the UTC time zone. Chronologies that do not operate in a time zone or are already UTC must return themself. a version of this chronology that ignores time zones



withZone
abstract public Chronology withZone(DateTimeZone zone)(Code)
Returns an instance of this Chronology that operates in any time zone. a version of this chronology with a specific time zone
Parameters:
  zone - to use, or default if null
See Also:   org.joda.time.chrono.ZonedChronology



year
abstract public DateTimeField year()(Code)
Get the year field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



yearOfCentury
abstract public DateTimeField yearOfCentury()(Code)
Get the year of century field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



yearOfEra
abstract public DateTimeField yearOfEra()(Code)
Get the year of era field for this chronology. DateTimeField or UnsupportedDateTimeField if unsupported



years
abstract public DurationField years()(Code)
Get the years duration field for this chronology. DurationField or UnsupportedDurationField if unsupported



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.