| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_252) on Sun Apr 26 20:47:05 PDT 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>HybridChronology (ORC Core 1.6.3 API)</title> |
| <meta name="date" content="2020-04-26"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="HybridChronology (ORC Core 1.6.3 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/HybridChronology.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/threeten/extra/chrono/HybridChronology.html" target="_top">Frames</a></li> |
| <li><a href="HybridChronology.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.threeten.extra.chrono</div> |
| <h2 title="Class HybridChronology" class="title">Class HybridChronology</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true" title="class or interface in java.time.chrono">java.time.chrono.AbstractChronology</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.threeten.extra.chrono.HybridChronology</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a>>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">HybridChronology</span> |
| extends <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true" title="class or interface in java.time.chrono">AbstractChronology</a> |
| implements <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> |
| <div class="block">The Julian-Gregorian hybrid calendar system. |
| <p> |
| The British calendar system follows the rules of the Julian calendar |
| until 1752 and the rules of the Gregorian (ISO) calendar since then. |
| The Julian differs from the Gregorian only in terms of the leap year rule. |
| <p> |
| The Julian and Gregorian calendar systems are linked to Rome and the Vatican |
| with the Julian preceding the Gregorian. The Gregorian was introduced to |
| handle the drift of the seasons through the year due to the inaccurate |
| Julian leap year rules. When first introduced by the Vatican in 1582, |
| the cutover resulted in a "gap" of 10 days. |
| <p> |
| While the calendar was introduced in 1582, it was not adopted everywhere. |
| Britain did not adopt it until the 1752, when Wednesday 2nd September 1752 |
| was followed by Thursday 14th September 1752. |
| <p> |
| This chronology implements the proleptic Julian calendar system followed by |
| the proleptic Gregorian calendar system (identical to the ISO calendar system). |
| Dates are aligned such that <code>0001-01-01 (British)</code> is <code>0000-12-30 (ISO)</code>. |
| <p> |
| This class implements a calendar where January 1st is the start of the year. |
| The history of the start of the year is complex and using the current standard |
| is the most consistent. |
| <p> |
| The eras of this calendar system are defined by <code>JulianEra</code> to avoid unnecessary duplication. |
| <p> |
| The fields are defined as follows: |
| <ul> |
| <li>era - There are two eras, the current 'Anno Domini' (AD) and the previous era 'Before Christ' (BC). |
| <li>year-of-era - The year-of-era for the current era increases uniformly from the epoch at year one. |
| For the previous era the year increases from one as time goes backwards. |
| <li>proleptic-year - The proleptic year is the same as the year-of-era for the |
| current era. For the previous era, years have zero, then negative values. |
| <li>month-of-year - There are 12 months in a year, numbered from 1 to 12. |
| <li>day-of-month - There are between 28 and 31 days in each month, numbered from 1 to 31. |
| Months 4, 6, 9 and 11 have 30 days, Months 1, 3, 5, 7, 8, 10 and 12 have 31 days. |
| Month 2 has 28 days, or 29 in a leap year. |
| The cutover month, September 1752, has a value range from 1 to 30, but a length of 19. |
| <li>day-of-year - There are 365 days in a standard year and 366 in a leap year. |
| The days are numbered from 1 to 365 or 1 to 366. |
| The cutover year 1752 has values from 1 to 355 and a length of 355 days. |
| </ul> |
| |
| <h3>Implementation Requirements</h3> |
| This class is immutable and thread-safe.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../serialized-form.html#org.threeten.extra.chrono.HybridChronology">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html?is-external=true" title="class or interface in java.time">LocalDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#CUTOVER">CUTOVER</a></span></code> |
| <div class="block">The cutover date, October 15, 1582.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/threeten/extra/chrono/HybridChronology.html" title="class in org.threeten.extra.chrono">HybridChronology</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#INSTANCE">INSTANCE</a></span></code> |
| <div class="block">Singleton instance for the Coptic chronology.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#HybridChronology--">HybridChronology</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Use the singleton <a href="../../../../org/threeten/extra/chrono/HybridChronology.html#INSTANCE"><code>INSTANCE</code></a> instead.</span></div> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#date-java.time.chrono.Era-int-int-int-">date</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra, |
| int month, |
| int dayOfMonth)</code> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| era, year-of-era, month-of-year and day-of-month fields.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#date-int-int-int-">date</a></span>(int prolepticYear, |
| int month, |
| int dayOfMonth)</code> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| proleptic-year, month-of-year and day-of-month fields.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#date-java.time.temporal.TemporalAccessor-">date</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</code> |
| <div class="block">Obtains a British Cutover local date from another date-time object.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateEpochDay-long-">dateEpochDay</a></span>(long epochDay)</code> |
| <div class="block">Obtains a local date in the British Cutover calendar system from the epoch-day.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateNow--">dateNow</a></span>()</code> |
| <div class="block">Obtains the current British Cutover local date from the system clock in the default time-zone.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateNow-java.time.Clock-">dateNow</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html?is-external=true" title="class or interface in java.time">Clock</a> clock)</code> |
| <div class="block">Obtains the current British Cutover local date from the specified clock.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateNow-java.time.ZoneId-">dateNow</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html?is-external=true" title="class or interface in java.time">ZoneId</a> zone)</code> |
| <div class="block">Obtains the current British Cutover local date from the system clock in the specified time-zone.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateYearDay-java.time.chrono.Era-int-int-">dateYearDay</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra, |
| int dayOfYear)</code> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| era, year-of-era and day-of-year fields.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#dateYearDay-int-int-">dateYearDay</a></span>(int prolepticYear, |
| int dayOfYear)</code> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| proleptic-year and day-of-year fields.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>org.threeten.extra.chrono.JulianEra</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#eraOf-int-">eraOf</a></span>(int eraValue)</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#eras--">eras</a></span>()</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#getCalendarType--">getCalendarType</a></span>()</code> |
| <div class="block">Gets the calendar type of the underlying calendar system, which returns null.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html?is-external=true" title="class or interface in java.time">LocalDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#getCutover--">getCutover</a></span>()</code> |
| <div class="block">Gets the cutover date between the Julian and Gregorian calendar.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#getId--">getId</a></span>()</code> |
| <div class="block">Gets the ID of the chronology - 'Hybrid'.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#isLeapYear-long-">isLeapYear</a></span>(long prolepticYear)</code> |
| <div class="block">Checks if the specified year is a leap year.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoLocalDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoLocalDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#localDateTime-java.time.temporal.TemporalAccessor-">localDateTime</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</code> |
| <div class="block">Obtains a British Cutover local date-time from another date-time object.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#prolepticYear-java.time.chrono.Era-int-">prolepticYear</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra)</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/ValueRange.html?is-external=true" title="class or interface in java.time.temporal">ValueRange</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#range-java.time.temporal.ChronoField-">range</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html?is-external=true" title="class or interface in java.time.temporal">ChronoField</a> field)</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#resolveDate-java.util.Map-java.time.format.ResolverStyle-">resolveDate</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalField.html?is-external=true" title="class or interface in java.time.temporal">TemporalField</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>> fieldValues, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/time/format/ResolverStyle.html?is-external=true" title="class or interface in java.time.format">ResolverStyle</a> resolverStyle)</code> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoZonedDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoZonedDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#zonedDateTime-java.time.Instant-java.time.ZoneId-">zonedDateTime</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> instant, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html?is-external=true" title="class or interface in java.time">ZoneId</a> zone)</code> |
| <div class="block">Obtains a British Cutover zoned date-time in this chronology from an <code>Instant</code>.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoZonedDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoZonedDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#zonedDateTime-java.time.temporal.TemporalAccessor-">zonedDateTime</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</code> |
| <div class="block">Obtains a British Cutover zoned date-time from another date-time object.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.time.chrono.AbstractChronology"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.time.chrono.<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true" title="class or interface in java.time.chrono">AbstractChronology</a></h3> |
| <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true#compareTo-java.time.chrono.Chronology-" title="class or interface in java.time.chrono">compareTo</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.time.chrono">equals</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true#hashCode--" title="class or interface in java.time.chrono">hashCode</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true#toString--" title="class or interface in java.time.chrono">toString</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.time.chrono.Chronology"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface java.time.chrono.<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></h3> |
| <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#from-java.time.temporal.TemporalAccessor-" title="class or interface in java.time.chrono">from</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#getDisplayName-java.time.format.TextStyle-java.util.Locale-" title="class or interface in java.time.chrono">getDisplayName</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#period-int-int-int-" title="class or interface in java.time.chrono">period</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="INSTANCE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>INSTANCE</h4> |
| <pre>public static final <a href="../../../../org/threeten/extra/chrono/HybridChronology.html" title="class in org.threeten.extra.chrono">HybridChronology</a> INSTANCE</pre> |
| <div class="block">Singleton instance for the Coptic chronology.</div> |
| </li> |
| </ul> |
| <a name="CUTOVER"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CUTOVER</h4> |
| <pre>public static final <a href="http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html?is-external=true" title="class or interface in java.time">LocalDate</a> CUTOVER</pre> |
| <div class="block">The cutover date, October 15, 1582.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="HybridChronology--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>HybridChronology</h4> |
| <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public HybridChronology()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use the singleton <a href="../../../../org/threeten/extra/chrono/HybridChronology.html#INSTANCE"><code>INSTANCE</code></a> instead.</span></div> |
| <div class="block">Private constructor, that is public to satisfy the <code>ServiceLoader</code>.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getCutover--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCutover</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html?is-external=true" title="class or interface in java.time">LocalDate</a> getCutover()</pre> |
| <div class="block">Gets the cutover date between the Julian and Gregorian calendar. |
| <p> |
| The date returned is the first date that the Gregorian (ISO) calendar applies, |
| which is Thursday 14th September 1752.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the first date after the cutover, not null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getId--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getId</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getId()</pre> |
| <div class="block">Gets the ID of the chronology - 'Hybrid'. |
| <p> |
| The ID uniquely identifies the <code>Chronology</code>. |
| It can be used to lookup the <code>Chronology</code> using <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#of-java.lang.String-" title="class or interface in java.time.chrono"><code>Chronology.of(String)</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#getId--" title="class or interface in java.time.chrono">getId</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the chronology ID - 'Hybrid'</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#getCalendarType--"><code>getCalendarType()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getCalendarType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCalendarType</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getCalendarType()</pre> |
| <div class="block">Gets the calendar type of the underlying calendar system, which returns null. |
| <p> |
| The <em>Unicode Locale Data Markup Language (LDML)</em> specification |
| does not define an identifier for this calendar system, thus null is returned.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#getCalendarType--" title="class or interface in java.time.chrono">getCalendarType</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the calendar system type, null</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/threeten/extra/chrono/HybridChronology.html#getId--"><code>getId()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="date-java.time.chrono.Era-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>date</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> date(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra, |
| int month, |
| int dayOfMonth)</pre> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| era, year-of-era, month-of-year and day-of-month fields. |
| <p> |
| Dates in the middle of the cutover gap, such as the 10th September 1752, |
| will not throw an exception. Instead, the date will be treated as a Julian date |
| and converted to an ISO date, with the day of month shifted by 11 days.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#date-java.time.chrono.Era-int-int-int-" title="class or interface in java.time.chrono">date</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>era</code> - the British Cutover era, not null</dd> |
| <dd><code>yearOfEra</code> - the year-of-era</dd> |
| <dd><code>month</code> - the month-of-year</dd> |
| <dd><code>dayOfMonth</code> - the day-of-month</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the <code>era</code> is not a <code>JulianEra</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="date-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>date</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> date(int prolepticYear, |
| int month, |
| int dayOfMonth)</pre> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| proleptic-year, month-of-year and day-of-month fields. |
| <p> |
| Dates in the middle of the cutover gap, such as the 10th September 1752, |
| will not throw an exception. Instead, the date will be treated as a Julian date |
| and converted to an ISO date, with the day of month shifted by 11 days.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#date-int-int-int-" title="class or interface in java.time.chrono">date</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prolepticYear</code> - the proleptic-year</dd> |
| <dd><code>month</code> - the month-of-year</dd> |
| <dd><code>dayOfMonth</code> - the day-of-month</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateYearDay-java.time.chrono.Era-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateYearDay</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateYearDay(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra, |
| int dayOfYear)</pre> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| era, year-of-era and day-of-year fields. |
| <p> |
| The day-of-year takes into account the cutover, thus there are only 355 days in 1752.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateYearDay-java.time.chrono.Era-int-int-" title="class or interface in java.time.chrono">dateYearDay</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>era</code> - the British Cutover era, not null</dd> |
| <dd><code>yearOfEra</code> - the year-of-era</dd> |
| <dd><code>dayOfYear</code> - the day-of-year</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the <code>era</code> is not a <code>JulianEra</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateYearDay-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateYearDay</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateYearDay(int prolepticYear, |
| int dayOfYear)</pre> |
| <div class="block">Obtains a local date in British Cutover calendar system from the |
| proleptic-year and day-of-year fields. |
| <p> |
| The day-of-year takes into account the cutover, thus there are only 355 days in 1752.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateYearDay-int-int-" title="class or interface in java.time.chrono">dateYearDay</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prolepticYear</code> - the proleptic-year</dd> |
| <dd><code>dayOfYear</code> - the day-of-year</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateEpochDay-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateEpochDay</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateEpochDay(long epochDay)</pre> |
| <div class="block">Obtains a local date in the British Cutover calendar system from the epoch-day.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateEpochDay-long-" title="class or interface in java.time.chrono">dateEpochDay</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>epochDay</code> - the epoch day</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateNow--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateNow</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateNow()</pre> |
| <div class="block">Obtains the current British Cutover local date from the system clock in the default time-zone. |
| <p> |
| This will query the <a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html?is-external=true#systemDefaultZone--" title="class or interface in java.time"><code>system clock</code></a> in the default |
| time-zone to obtain the current date. |
| <p> |
| Using this method will prevent the ability to use an alternate clock for testing |
| because the clock is hard-coded.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateNow--" title="class or interface in java.time.chrono">dateNow</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current British Cutover local date using the system clock and default time-zone, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateNow-java.time.ZoneId-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateNow</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateNow(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html?is-external=true" title="class or interface in java.time">ZoneId</a> zone)</pre> |
| <div class="block">Obtains the current British Cutover local date from the system clock in the specified time-zone. |
| <p> |
| This will query the <a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html?is-external=true#system-java.time.ZoneId-" title="class or interface in java.time"><code>system clock</code></a> to obtain the current date. |
| Specifying the time-zone avoids dependence on the default time-zone. |
| <p> |
| Using this method will prevent the ability to use an alternate clock for testing |
| because the clock is hard-coded.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateNow-java.time.ZoneId-" title="class or interface in java.time.chrono">dateNow</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>zone</code> - the zone ID to use, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current British Cutover local date using the system clock, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dateNow-java.time.Clock-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dateNow</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> dateNow(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html?is-external=true" title="class or interface in java.time">Clock</a> clock)</pre> |
| <div class="block">Obtains the current British Cutover local date from the specified clock. |
| <p> |
| This will query the specified clock to obtain the current date - today. |
| Using this method allows the use of an alternate clock for testing. |
| The alternate clock may be introduced using <a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html?is-external=true" title="class or interface in java.time"><code>dependency injection</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#dateNow-java.time.Clock-" title="class or interface in java.time.chrono">dateNow</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clock</code> - the clock to use, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="date-java.time.temporal.TemporalAccessor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>date</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> date(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</pre> |
| <div class="block">Obtains a British Cutover local date from another date-time object.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#date-java.time.temporal.TemporalAccessor-" title="class or interface in java.time.chrono">date</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>temporal</code> - the date-time object to convert, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="localDateTime-java.time.temporal.TemporalAccessor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>localDateTime</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoLocalDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoLocalDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>> localDateTime(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</pre> |
| <div class="block">Obtains a British Cutover local date-time from another date-time object.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#localDateTime-java.time.temporal.TemporalAccessor-" title="class or interface in java.time.chrono">localDateTime</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>temporal</code> - the date-time object to convert, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover local date-time, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date-time</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="zonedDateTime-java.time.temporal.TemporalAccessor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>zonedDateTime</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoZonedDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoZonedDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>> zonedDateTime(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalAccessor.html?is-external=true" title="class or interface in java.time.temporal">TemporalAccessor</a> temporal)</pre> |
| <div class="block">Obtains a British Cutover zoned date-time from another date-time object.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#zonedDateTime-java.time.temporal.TemporalAccessor-" title="class or interface in java.time.chrono">zonedDateTime</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>temporal</code> - the date-time object to convert, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover zoned date-time, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if unable to create the date-time</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="zonedDateTime-java.time.Instant-java.time.ZoneId-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>zonedDateTime</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/ChronoZonedDateTime.html?is-external=true" title="class or interface in java.time.chrono">ChronoZonedDateTime</a><<a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a>> zonedDateTime(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> instant, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html?is-external=true" title="class or interface in java.time">ZoneId</a> zone)</pre> |
| <div class="block">Obtains a British Cutover zoned date-time in this chronology from an <code>Instant</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#zonedDateTime-java.time.Instant-java.time.ZoneId-" title="class or interface in java.time.chrono">zonedDateTime</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>instant</code> - the instant to create the date-time from, not null</dd> |
| <dd><code>zone</code> - the time-zone, not null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the British Cutover zoned date-time, not null</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/DateTimeException.html?is-external=true" title="class or interface in java.time">DateTimeException</a></code> - if the result exceeds the supported range</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isLeapYear-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLeapYear</h4> |
| <pre>public boolean isLeapYear(long prolepticYear)</pre> |
| <div class="block">Checks if the specified year is a leap year. |
| <p> |
| The result will return the same as <code>JulianChronology.isLeapYear(long)</code> for |
| year 1752 and earlier, and <a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/IsoChronology.html?is-external=true#isLeapYear-long-" title="class or interface in java.time.chrono"><code>IsoChronology.isLeapYear(long)</code></a> otherwise. |
| This method does not validate the year passed in, and only has a |
| well-defined result for years in the supported range.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#isLeapYear-long-" title="class or interface in java.time.chrono">isLeapYear</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>prolepticYear</code> - the proleptic-year to check, not validated for range</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the year is a leap year</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="prolepticYear-java.time.chrono.Era-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>prolepticYear</h4> |
| <pre>public int prolepticYear(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a> era, |
| int yearOfEra)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#prolepticYear-java.time.chrono.Era-int-" title="class or interface in java.time.chrono">prolepticYear</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="eraOf-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>eraOf</h4> |
| <pre>public org.threeten.extra.chrono.JulianEra eraOf(int eraValue)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#eraOf-int-" title="class or interface in java.time.chrono">eraOf</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="eras--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>eras</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Era.html?is-external=true" title="class or interface in java.time.chrono">Era</a>> eras()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#eras--" title="class or interface in java.time.chrono">eras</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="range-java.time.temporal.ChronoField-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>range</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/ValueRange.html?is-external=true" title="class or interface in java.time.temporal">ValueRange</a> range(<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html?is-external=true" title="class or interface in java.time.temporal">ChronoField</a> field)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#range-java.time.temporal.ChronoField-" title="class or interface in java.time.chrono">range</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="resolveDate-java.util.Map-java.time.format.ResolverStyle-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>resolveDate</h4> |
| <pre>public <a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono">HybridDate</a> resolveDate(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/time/temporal/TemporalField.html?is-external=true" title="class or interface in java.time.temporal">TemporalField</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>> fieldValues, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/time/format/ResolverStyle.html?is-external=true" title="class or interface in java.time.format">ResolverStyle</a> resolverStyle)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true#resolveDate-java.util.Map-java.time.format.ResolverStyle-" title="class or interface in java.time.chrono">resolveDate</a></code> in interface <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/Chronology.html?is-external=true" title="class or interface in java.time.chrono">Chronology</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true#resolveDate-java.util.Map-java.time.format.ResolverStyle-" title="class or interface in java.time.chrono">resolveDate</a></code> in class <code><a href="http://docs.oracle.com/javase/8/docs/api/java/time/chrono/AbstractChronology.html?is-external=true" title="class or interface in java.time.chrono">AbstractChronology</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/HybridChronology.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../org/threeten/extra/chrono/HybridDate.html" title="class in org.threeten.extra.chrono"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/threeten/extra/chrono/HybridChronology.html" target="_top">Frames</a></li> |
| <li><a href="HybridChronology.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2013–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |