Java Doc for TestGJChronology.java in  » Development » Joda-Time » org » joda » time » chrono » gj » 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.chrono.gj 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.joda.time.Chronology
      org.joda.time.chrono.BaseChronology
         org.joda.time.chrono.gj.TestGJChronology

All known Subclasses:   org.joda.time.chrono.gj.TestJulianChronology,  org.joda.time.chrono.gj.TestGregorianChronology,
TestGJChronology
abstract class TestGJChronology extends BaseChronology (Code)
A reference Gregorian/Julian chronology implementation, intended for testing purposes only. Correctness is favored over performance. The key functions for date calculations are based on ones provided in "Calendrical Calculations", ISBN 0-521-77752-6.

In theory, this class can be used to test any other Gregorian/Julian chronology as long as almost all datetime fields are implemented differently between the two. Fields that would most likely be implemented the same are not supported by this class.

Unsupported features

  • time zones
  • time of day
  • year of era
  • year of century
  • century of era
  • era

author:
   Brian S O'Neill


Field Summary
final static  longMILLIS_PER_DAY
    

Constructor Summary
public  TestGJChronology(int epochYear, int epochMonth, int epochDay)
    

Method Summary
static  longamod(long dividend, long divisor)
    
public  DateTimeFielddayOfMonth()
    
public  DateTimeFielddayOfWeek()
    
public  DateTimeFielddayOfYear()
    
public  DurationFielddays()
    
static  longdiv(long dividend, long divisor)
     Divide with round-negative behavior.
 longfirstWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)
    
abstract  longfixedFromGJ(int year, int monthOfYear, int dayOfMonth)
    
abstract  longfixedFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)
    
 longfixedFromMillis(long millis)
    
 longgetDateOnlyMillis(long millis)
    
 longgetTimeOnlyMillis(long millis)
    
public  DateTimeZonegetZone()
    
abstract  int[]gjFromFixed(long date)
    
 int[]gjFromMillis(long millis)
    
abstract  intgjYearFromFixed(long date)
    
 intgjYearFromMillis(long millis)
    
abstract  booleanisLeapYear(int year)
    
abstract  int[]isoFromFixed(long date)
    
 int[]isoFromMillis(long millis)
    
 longlastWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)
    
 longmillisFromFixed(long fixed)
    
 longmillisFromGJ(int year, int monthOfYear, int dayOfMonth)
    
 longmillisFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)
    
abstract  longmillisPerMonth()
    
abstract  longmillisPerYear()
    
static  longmod(long dividend, long divisor)
     Modulus with round-negative behavior, result is always positive.
public  DateTimeFieldmonthOfYear()
    
public  DurationFieldmonths()
    
 longnthWeekday(int n, int weekday, int year, int monthOfYear, int dayOfMonth)
    
public  DateTimeFieldweekOfWeekyear()
    
 longweekdayAfter(long date, int weekday)
    
 longweekdayBefore(long date, int weekday)
    
 longweekdayNearest(long date, int weekday)
    
 longweekdayOnOrAfter(long date, int weekday)
    
 longweekdayOnOrBefore(long date, int weekday)
    
Parameters:
  date - days from 0001-01-01
Parameters:
  weekday - 0=Sunday, 1=Monday, 2=Tuesday ...
public  DurationFieldweeks()
    
public  DateTimeFieldweekyear()
    
public  DurationFieldweekyears()
    
public  ChronologywithUTC()
    
public  ChronologywithZone(DateTimeZone zone)
     Unsupported.
public  DateTimeFieldyear()
    
public  DurationFieldyears()
    

Field Detail
MILLIS_PER_DAY
final static long MILLIS_PER_DAY(Code)




Constructor Detail
TestGJChronology
public TestGJChronology(int epochYear, int epochMonth, int epochDay)(Code)




Method Detail
amod
static long amod(long dividend, long divisor)(Code)



dayOfMonth
public DateTimeField dayOfMonth()(Code)



dayOfWeek
public DateTimeField dayOfWeek()(Code)



dayOfYear
public DateTimeField dayOfYear()(Code)



days
public DurationField days()(Code)



div
static long div(long dividend, long divisor)(Code)
Divide with round-negative behavior.
Parameters:
  divisor - must be positive



firstWeekday
long firstWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)(Code)



fixedFromGJ
abstract long fixedFromGJ(int year, int monthOfYear, int dayOfMonth)(Code)
days from 0001-01-01



fixedFromISO
abstract long fixedFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)(Code)



fixedFromMillis
long fixedFromMillis(long millis)(Code)

Parameters:
  millis - milliseconds from epoch days from 0001-01-01



getDateOnlyMillis
long getDateOnlyMillis(long millis)(Code)



getTimeOnlyMillis
long getTimeOnlyMillis(long millis)(Code)



getZone
public DateTimeZone getZone()(Code)



gjFromFixed
abstract int[] gjFromFixed(long date)(Code)

Parameters:
  date - days from 0001-01-01 gj year, monthOfYear, dayOfMonth



gjFromMillis
int[] gjFromMillis(long millis)(Code)

Parameters:
  millis - milliseconds from epoch gj year, monthOfYear, dayOfMonth



gjYearFromFixed
abstract int gjYearFromFixed(long date)(Code)

Parameters:
  date - days from 0001-01-01 gj year



gjYearFromMillis
int gjYearFromMillis(long millis)(Code)

Parameters:
  millis - milliseconds from epoch gj year



isLeapYear
abstract boolean isLeapYear(int year)(Code)



isoFromFixed
abstract int[] isoFromFixed(long date)(Code)

Parameters:
  date - days from 0001-01-01 iso weekyear, weekOfWeekyear, dayOfWeek (1=Monday to 7)



isoFromMillis
int[] isoFromMillis(long millis)(Code)

Parameters:
  millis - milliseconds from epoch iso weekyear, weekOfWeekyear, dayOfWeek (1=Monday to 7)



lastWeekday
long lastWeekday(int weekday, int year, int monthOfYear, int dayOfMonth)(Code)



millisFromFixed
long millisFromFixed(long fixed)(Code)

Parameters:
  fixed - days from 0001-01-01 milliseconds from epoch



millisFromGJ
long millisFromGJ(int year, int monthOfYear, int dayOfMonth)(Code)
milliseconds from epoch



millisFromISO
long millisFromISO(int weekyear, int weekOfWeekyear, int dayOfWeek)(Code)
milliseconds from epoch



millisPerMonth
abstract long millisPerMonth()(Code)



millisPerYear
abstract long millisPerYear()(Code)



mod
static long mod(long dividend, long divisor)(Code)
Modulus with round-negative behavior, result is always positive.
Parameters:
  divisor - must be positive



monthOfYear
public DateTimeField monthOfYear()(Code)



months
public DurationField months()(Code)



nthWeekday
long nthWeekday(int n, int weekday, int year, int monthOfYear, int dayOfMonth)(Code)



weekOfWeekyear
public DateTimeField weekOfWeekyear()(Code)



weekdayAfter
long weekdayAfter(long date, int weekday)(Code)



weekdayBefore
long weekdayBefore(long date, int weekday)(Code)



weekdayNearest
long weekdayNearest(long date, int weekday)(Code)



weekdayOnOrAfter
long weekdayOnOrAfter(long date, int weekday)(Code)



weekdayOnOrBefore
long weekdayOnOrBefore(long date, int weekday)(Code)

Parameters:
  date - days from 0001-01-01
Parameters:
  weekday - 0=Sunday, 1=Monday, 2=Tuesday ... 6=Saturday, 7=Sunday
Parameters:
  date - days from 0001-01-01, on or before weekday



weeks
public DurationField weeks()(Code)



weekyear
public DateTimeField weekyear()(Code)



weekyears
public DurationField weekyears()(Code)



withUTC
public Chronology withUTC()(Code)



withZone
public Chronology withZone(DateTimeZone zone)(Code)
Unsupported.



year
public DateTimeField year()(Code)



years
public DurationField years()(Code)



Methods inherited from org.joda.time.chrono.BaseChronology
public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc)
public long add(long instant, long duration, int scalar)(Code)(Java Doc)
public DurationField centuries()(Code)(Java Doc)
public DateTimeField centuryOfEra()(Code)(Java Doc)
public DateTimeField clockhourOfDay()(Code)(Java Doc)
public DateTimeField clockhourOfHalfday()(Code)(Java Doc)
public DateTimeField dayOfMonth()(Code)(Java Doc)
public DateTimeField dayOfWeek()(Code)(Java Doc)
public DateTimeField dayOfYear()(Code)(Java Doc)
public DurationField days()(Code)(Java Doc)
public DateTimeField era()(Code)(Java Doc)
public DurationField eras()(Code)(Java Doc)
public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc)
public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc)
public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc)
public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException(Code)(Java Doc)
public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc)
public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException(Code)(Java Doc)
abstract public DateTimeZone getZone()(Code)(Java Doc)
public DateTimeField halfdayOfDay()(Code)(Java Doc)
public DurationField halfdays()(Code)(Java Doc)
public DateTimeField hourOfDay()(Code)(Java Doc)
public DateTimeField hourOfHalfday()(Code)(Java Doc)
public DurationField hours()(Code)(Java Doc)
public DurationField millis()(Code)(Java Doc)
public DateTimeField millisOfDay()(Code)(Java Doc)
public DateTimeField millisOfSecond()(Code)(Java Doc)
public DateTimeField minuteOfDay()(Code)(Java Doc)
public DateTimeField minuteOfHour()(Code)(Java Doc)
public DurationField minutes()(Code)(Java Doc)
public DateTimeField monthOfYear()(Code)(Java Doc)
public DurationField months()(Code)(Java Doc)
public DateTimeField secondOfDay()(Code)(Java Doc)
public DateTimeField secondOfMinute()(Code)(Java Doc)
public DurationField seconds()(Code)(Java Doc)
public long set(ReadablePartial partial, long instant)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc)
public DateTimeField weekOfWeekyear()(Code)(Java Doc)
public DurationField weeks()(Code)(Java Doc)
public DateTimeField weekyear()(Code)(Java Doc)
public DateTimeField weekyearOfCentury()(Code)(Java Doc)
public DurationField weekyears()(Code)(Java Doc)
abstract public Chronology withUTC()(Code)(Java Doc)
abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc)
public DateTimeField year()(Code)(Java Doc)
public DateTimeField yearOfCentury()(Code)(Java Doc)
public DateTimeField yearOfEra()(Code)(Java Doc)
public DurationField years()(Code)(Java Doc)

Methods inherited from org.joda.time.Chronology
abstract public long add(ReadablePeriod period, long instant, int scalar)(Code)(Java Doc)
abstract public long add(long instant, long duration, int scalar)(Code)(Java Doc)
abstract public DurationField centuries()(Code)(Java Doc)
abstract public DateTimeField centuryOfEra()(Code)(Java Doc)
abstract public DateTimeField clockhourOfDay()(Code)(Java Doc)
abstract public DateTimeField clockhourOfHalfday()(Code)(Java Doc)
abstract public DateTimeField dayOfMonth()(Code)(Java Doc)
abstract public DateTimeField dayOfWeek()(Code)(Java Doc)
abstract public DateTimeField dayOfYear()(Code)(Java Doc)
abstract public DurationField days()(Code)(Java Doc)
abstract public DateTimeField era()(Code)(Java Doc)
abstract public DurationField eras()(Code)(Java Doc)
abstract public int[] get(ReadablePartial partial, long instant)(Code)(Java Doc)
abstract public int[] get(ReadablePeriod period, long startInstant, long endInstant)(Code)(Java Doc)
abstract public int[] get(ReadablePeriod period, long duration)(Code)(Java Doc)
public static Chronology getBuddhist()(Code)(Java Doc)
public static Chronology getBuddhist(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getBuddhistUTC()(Code)(Java Doc)
public static Chronology getCoptic()(Code)(Java Doc)
public static Chronology getCoptic(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getCopticUTC()(Code)(Java Doc)
abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay)(Code)(Java Doc)
abstract public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc)
abstract public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)(Code)(Java Doc)
public static Chronology getGJ()(Code)(Java Doc)
public static Chronology getGJ(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getGJUTC()(Code)(Java Doc)
public static Chronology getGregorian()(Code)(Java Doc)
public static Chronology getGregorian(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getGregorianUTC()(Code)(Java Doc)
public static Chronology getISO()(Code)(Java Doc)
public static Chronology getISO(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getISOUTC()(Code)(Java Doc)
public static Chronology getJulian()(Code)(Java Doc)
public static Chronology getJulian(DateTimeZone zone)(Code)(Java Doc)
public static Chronology getJulianUTC()(Code)(Java Doc)
abstract public DateTimeZone getZone()(Code)(Java Doc)
abstract public DateTimeField halfdayOfDay()(Code)(Java Doc)
abstract public DurationField halfdays()(Code)(Java Doc)
abstract public DateTimeField hourOfDay()(Code)(Java Doc)
abstract public DateTimeField hourOfHalfday()(Code)(Java Doc)
abstract public DurationField hours()(Code)(Java Doc)
abstract public DurationField millis()(Code)(Java Doc)
abstract public DateTimeField millisOfDay()(Code)(Java Doc)
abstract public DateTimeField millisOfSecond()(Code)(Java Doc)
abstract public DateTimeField minuteOfDay()(Code)(Java Doc)
abstract public DateTimeField minuteOfHour()(Code)(Java Doc)
abstract public DurationField minutes()(Code)(Java Doc)
abstract public DateTimeField monthOfYear()(Code)(Java Doc)
abstract public DurationField months()(Code)(Java Doc)
abstract public DateTimeField secondOfDay()(Code)(Java Doc)
abstract public DateTimeField secondOfMinute()(Code)(Java Doc)
abstract public DurationField seconds()(Code)(Java Doc)
abstract public long set(ReadablePartial partial, long instant)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
abstract public void validate(ReadablePartial partial, int[] values)(Code)(Java Doc)
abstract public DateTimeField weekOfWeekyear()(Code)(Java Doc)
abstract public DurationField weeks()(Code)(Java Doc)
abstract public DateTimeField weekyear()(Code)(Java Doc)
abstract public DateTimeField weekyearOfCentury()(Code)(Java Doc)
abstract public DurationField weekyears()(Code)(Java Doc)
abstract public Chronology withUTC()(Code)(Java Doc)
abstract public Chronology withZone(DateTimeZone zone)(Code)(Java Doc)
abstract public DateTimeField year()(Code)(Java Doc)
abstract public DateTimeField yearOfCentury()(Code)(Java Doc)
abstract public DateTimeField yearOfEra()(Code)(Java Doc)
abstract public DurationField years()(Code)(Java Doc)

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.