Dela via


IsoFields Class

Definition

Fields and units specific to the ISO-8601 calendar system, including quarter-of-year and week-based-year.

[Android.Runtime.Register("java/time/temporal/IsoFields", ApiSince=26, DoNotGenerateAcw=true)]
public sealed class IsoFields : Java.Lang.Object
[<Android.Runtime.Register("java/time/temporal/IsoFields", ApiSince=26, DoNotGenerateAcw=true)>]
type IsoFields = class
    inherit Object
Inheritance
IsoFields
Attributes

Remarks

Fields and units specific to the ISO-8601 calendar system, including quarter-of-year and week-based-year.

This class defines fields and units that are specific to the ISO calendar system.

<h2>Quarter of year</h2> The ISO-8601 standard is based on the standard civic 12 month year. This is commonly divided into four quarters, often abbreviated as Q1, Q2, Q3 and Q4.

January, February and March are in Q1. April, May and June are in Q2. July, August and September are in Q3. October, November and December are in Q4.

The complete date is expressed using three fields: <ul> <li>#DAY_OF_QUARTER DAY_OF_QUARTER - the day within the quarter, from 1 to 90, 91 or 92 <li>#QUARTER_OF_YEAR QUARTER_OF_YEAR - the quarter within the year, from 1 to 4 <li>ChronoField#YEAR YEAR - the standard ISO year </ul>

<h2>Week based years</h2> The ISO-8601 standard was originally intended as a data interchange format, defining a string format for dates and times. However, it also defines an alternate way of expressing the date, based on the concept of week-based-year.

The date is expressed using three fields: <ul> <li>ChronoField#DAY_OF_WEEK DAY_OF_WEEK - the standard field defining the day-of-week from Monday (1) to Sunday (7) <li>#WEEK_OF_WEEK_BASED_YEAR - the week within the week-based-year <li>#WEEK_BASED_YEAR WEEK_BASED_YEAR - the week-based-year </ul> The week-based-year itself is defined relative to the standard ISO proleptic year. It differs from the standard year in that it always starts on a Monday.

The first week of a week-based-year is the first Monday-based week of the standard ISO year that has at least 4 days in the new year. <ul> <li>If January 1st is Monday then week 1 starts on January 1st <li>If January 1st is Tuesday then week 1 starts on December 31st of the previous standard year <li>If January 1st is Wednesday then week 1 starts on December 30th of the previous standard year <li>If January 1st is Thursday then week 1 starts on December 29th of the previous standard year <li>If January 1st is Friday then week 1 starts on January 4th <li>If January 1st is Saturday then week 1 starts on January 3rd <li>If January 1st is Sunday then week 1 starts on January 2nd </ul> There are 52 weeks in most week-based years, however on occasion there are 53 weeks.

For example:

<table class=striped style="text-align: left"> <caption>Examples of Week based Years</caption> <thead> <tr><th scope="col">Date</th><th scope="col">Day-of-week</th><th scope="col">Field values</th></tr> </thead> <tbody> <tr><th scope="row">2008-12-28</th><td>Sunday</td><td>Week 52 of week-based-year 2008</td></tr> <tr><th scope="row">2008-12-29</th><td>Monday</td><td>Week 1 of week-based-year 2009</td></tr> <tr><th scope="row">2008-12-31</th><td>Wednesday</td><td>Week 1 of week-based-year 2009</td></tr> <tr><th scope="row">2009-01-01</th><td>Thursday</td><td>Week 1 of week-based-year 2009</td></tr> <tr><th scope="row">2009-01-04</th><td>Sunday</td><td>Week 1 of week-based-year 2009</td></tr> <tr><th scope="row">2009-01-05</th><td>Monday</td><td>Week 2 of week-based-year 2009</td></tr> </tbody> </table>

Added in 1.8.

Java documentation for java.time.temporal.IsoFields.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
DayOfQuarter

The field that represents the day-of-quarter.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
QuarterOfYear

The field that represents the quarter-of-year.

QuarterYears

Unit that represents the concept of a quarter-year.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
WeekBasedYear

The field that represents the week-based-year.

WeekBasedYears

The unit that represents week-based-years for the purpose of addition and subtraction.

WeekOfWeekBasedYear

The field that represents the week-of-week-based-year.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to