src/java.base/share/classes/java/time/overview.html
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 25859 jdk/src/java.base/share/classes/java/time/overview.html@3317bb8137f4
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15289
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     1
<!--
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     2
/*
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     3
 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     5
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     8
 * published by the Free Software Foundation.  Oracle designates this
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
     9
 * particular file as subject to the "Classpath" exception as provided
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    10
 * by Oracle in the LICENSE file that accompanied this code.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    11
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    12
 * This code is distributed in the hope that it will be useful, but WITHOUT
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    15
 * version 2 for more details (a copy is included in the LICENSE file that
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    16
 * accompanied this code).
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    17
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License version
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    19
 * 2 along with this work; if not, write to the Free Software Foundation,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    20
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    21
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    22
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    23
 * or visit www.oracle.com if you need additional information or have any
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    24
 * questions.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    25
 */
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    26
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    27
/*
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    28
 * This file is available under and governed by the GNU General Public
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    29
 * License version 2 only, as published by the Free Software Foundation.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    30
 * However, the following notice accompanied the original version of this
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    31
 * file:
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    32
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    33
 * Copyright (c) 2008-2012, Stephen Colebourne & Michael Nascimento Santos
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    34
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    35
 * All rights reserved.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    36
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    37
 * Redistribution and use in source and binary forms, with or without
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    38
 * modification, are permitted provided that the following conditions are met:
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    39
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    40
 *  * Redistributions of source code must retain the above copyright notice,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    41
 *    this list of conditions and the following disclaimer.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    42
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    43
 *  * Redistributions in binary form must reproduce the above copyright notice,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    44
 *    this list of conditions and the following disclaimer in the documentation
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    45
 *    and/or other materials provided with the distribution.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    46
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    47
 *  * Neither the name of JSR-310 nor the names of its contributors
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    48
 *    may be used to endorse or promote products derived from this software
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    49
 *    without specific prior written permission.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    50
 *
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    51
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    52
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    53
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    54
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    55
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    56
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    57
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    58
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    59
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    60
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    61
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    62
 */
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    63
-->
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    64
<body>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    65
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    66
        A new Date and Time API for Java.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    67
        The design includes a relatively large number of classes and methods,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    68
        however each follows a common design language, especially in method prefixes.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    69
        Once the prefixes are understood, the API is relatively simple to comprehend.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    70
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    71
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    72
        The Java Time API is composed of several packages, each with a primary function:
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    73
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    74
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    75
        {@link java.time} contains the main API based on the ISO-8601 standard.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    76
        The classes defined here represent the principal date-time concepts,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    77
        including instants, durations, dates, times, time-zones and periods.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    78
        They are based on the ISO calendar system, which is the <i>de facto</i> world
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    79
        calendar following the proleptic Gregorian rules.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    80
        All the classes are immutable and thread-safe.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    81
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    82
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    83
        {@link java.time.temporal} contains the API for accessing the fields and units
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    84
        of date-time. Units are measurable, such as years, months and hours.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    85
        For example, the expression "2 hours later" uses the hours unit.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    86
        By contrast, fields are mini-calculations, defining a value.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    87
        For example, month-of-year, day-of-week and hour-of-day are all fields.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    88
        The set of supported units and fields can be extended by applications if desired.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    89
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    90
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    91
        {@link java.time.format} contains the API to print and parse fields into date-time
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    92
        objects and to customize parsing and printing.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    93
        Formatters can be created in a variety of ways, including constants, patterns,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    94
        localized styles and a builder.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    95
        Formatters are immutable and thread-safe.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    96
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    97
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    98
        {@link java.time.zone} contains the API to handle time-zones.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
    99
        Detailed information is made available about the rules of each time-zone.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   100
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   101
    <p>
15658
55b829ca2334 8007392: JSR 310: DateTime API Updates
sherman
parents: 15289
diff changeset
   102
        {@link java.time.chrono} contains the basic part of the calendar neutral API
55b829ca2334 8007392: JSR 310: DateTime API Updates
sherman
parents: 15289
diff changeset
   103
        and alternate calendar systems.
15289
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   104
        This is intended for use by applications that need to use localized calendars.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   105
        Support is provided for the Hijrah, Japanese, Minguo, and Thai Buddhist Calendars.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   106
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   107
    <h3>Design notes</h3>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   108
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   109
        Where possible, the API avoids the use of null.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   110
        All methods define whether they accept or return null in the Javadoc.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   111
        As a general rule, methods do not accept or return null.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   112
        A key exception is any method that takes an object and returns a boolean, for the purpose
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   113
        of checking or validating, will generally return false for null.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   114
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   115
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   116
        The API is designed to be type-safe where reasonable in the main high-level API.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   117
        Thus, there are separate classes for the distinct concepts of date, time and date-time, plus variants
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   118
        for offset and time-zones. The core 7 date-time classes, plus Instant, handle the needs of most applications.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   119
        Further classes handle other combinations - year, year-month and month-day in a type-safe manner.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   120
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   121
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   122
        In a language like Java, the use of many different types tends to cause API bloat.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   123
        This is handled here through the use of common method naming patterns throughout the API.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   124
        The common prefixes are 'of', 'get', 'is', 'with', 'plus', 'minus', 'to' and 'at'.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   125
        See {@link java.time.LocalDate} for an example of each of these methods.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   126
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   127
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   128
        Following type-safety to its logical conclusion would result in more classes, especially for time -
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   129
        hour-minute, hour-minute-second and hour-minute-second-nanosecond.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   130
        While logically pure, this was not possible in practice, as the additional classes would have
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   131
        excessively complicated the API. Notably, there would be additional combinations at the offset
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   132
        and date-time levels, such as offset-date-hour-minute.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   133
        To avoid this explosion of types, {@link java.time.LocalTime} is used for all precisions of time.
15658
55b829ca2334 8007392: JSR 310: DateTime API Updates
sherman
parents: 15289
diff changeset
   134
        By contrast, some additional classes were used for dates, such as {@link java.time.YearMonth}.
15289
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   135
        This proved necessary, as the API for year-month is significantly different to that for a date, whereas
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   136
        an absence of nanoseconds in a time can be approximated by returning zero.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   137
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   138
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   139
        Similarly, full type-safety might argue for a separate class for each field in date-time,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   140
        such as a class for HourOfDay and another for DayOfMonth.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   141
        This approach was tried, but was excessively complicated in the Java language, lacking usability.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   142
        A similar problem occurs with periods.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   143
        There is a case for a separate class for each period unit, such as a type for Years and a type for Minutes.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   144
        However, this yields a lot of classes and a problem of type conversion.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   145
        As such, general access to fields and units is not wrapped in a class.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   146
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   147
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   148
        Multiple calendar systems is an awkward addition to the design challenges.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   149
        The first principal is that most users want the standard ISO calendar system.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   150
        As such, the main classes are ISO-only. The second principal is that most of those that want a
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   151
        non-ISO calendar system want it for user interaction, thus it is a UI localization issue.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   152
        As such, date and time objects should be held as ISO objects in the data model and persistent
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   153
        storage, only being converted to and from a local calendar for display.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   154
        The calendar system would be stored separately in the user preferences.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   155
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   156
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   157
        There are, however, some limited use cases where users believe they need to store and use
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   158
        dates in arbitrary calendar systems throughout the application.
15658
55b829ca2334 8007392: JSR 310: DateTime API Updates
sherman
parents: 15289
diff changeset
   159
        This is supported by {@link java.time.chrono.ChronoLocalDate}, however it is vital to read
15289
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   160
        all the associated warnings in the Javadoc of that interface before using it.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   161
        In summary, applications that require general interoperation between multiple calendar systems
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   162
        typically need to be written in a very different way to those only using the ISO calendar,
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   163
        thus most applications should just use ISO and avoid {@code ChronoLocalDate}.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   164
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   165
    <p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   166
        Throughout all of this, a key goal was to allow date-time fields and units to be defined by applications.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   167
        This has been achieved having tried many different designs.
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   168
    </p>
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents:
diff changeset
   169
</body>