774 lines
34 KiB
C#
774 lines
34 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Globalization
|
|
{
|
|
/// <summary>Represents time in divisions, such as weeks, months, and years.</summary>
|
|
// Token: 0x020002D0 RID: 720
|
|
[Token(Token = "0x20002D0")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public abstract class Calendar : ICloneable
|
|
{
|
|
/// <summary>Gets the earliest date and time supported by this <see cref="T:System.Globalization.Calendar" /> object.</summary>
|
|
/// <returns>The earliest date and time supported by this calendar. The default is <see cref="F:System.DateTime.MinValue" />.</returns>
|
|
// Token: 0x1700032E RID: 814
|
|
// (get) Token: 0x06001AAB RID: 6827 RVA: 0x00011C58 File Offset: 0x0000FE58
|
|
[Token(Token = "0x1700032E")]
|
|
[ComVisible(false)]
|
|
public virtual DateTime MinSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AAB")]
|
|
[Address(RVA = "0x717E20", Offset = "0x716E20", VA = "0x180717E20", Slot = "5")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the latest date and time supported by this <see cref="T:System.Globalization.Calendar" /> object.</summary>
|
|
/// <returns>The latest date and time supported by this calendar. The default is <see cref="F:System.DateTime.MaxValue" />.</returns>
|
|
// Token: 0x1700032F RID: 815
|
|
// (get) Token: 0x06001AAC RID: 6828 RVA: 0x00011C70 File Offset: 0x0000FE70
|
|
[Token(Token = "0x1700032F")]
|
|
[ComVisible(false)]
|
|
public virtual DateTime MaxSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AAC")]
|
|
[Address(RVA = "0x717DC0", Offset = "0x716DC0", VA = "0x180717DC0", Slot = "6")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.Calendar" /> class.</summary>
|
|
// Token: 0x06001AAD RID: 6829 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AAD")]
|
|
[Address(RVA = "0x717B90", Offset = "0x716B90", VA = "0x180717B90")]
|
|
protected Calendar()
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000330 RID: 816
|
|
// (get) Token: 0x06001AAE RID: 6830 RVA: 0x00011C88 File Offset: 0x0000FE88
|
|
[Token(Token = "0x17000330")]
|
|
internal virtual int ID
|
|
{
|
|
[Token(Token = "0x6001AAE")]
|
|
[Address(RVA = "0x716A60", Offset = "0x715A60", VA = "0x180716A60", Slot = "7")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000331 RID: 817
|
|
// (get) Token: 0x06001AAF RID: 6831 RVA: 0x00011CA0 File Offset: 0x0000FEA0
|
|
[Token(Token = "0x17000331")]
|
|
internal virtual int BaseCalendarID
|
|
{
|
|
[Token(Token = "0x6001AAF")]
|
|
[Address(RVA = "0x6818B0", Offset = "0x6808B0", VA = "0x1806818B0", Slot = "8")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.</summary>
|
|
/// <returns>One of the <see cref="T:System.Globalization.CalendarAlgorithmType" /> values.</returns>
|
|
// Token: 0x17000332 RID: 818
|
|
// (get) Token: 0x06001AB0 RID: 6832 RVA: 0x00011CB8 File Offset: 0x0000FEB8
|
|
[Token(Token = "0x17000332")]
|
|
[ComVisible(false)]
|
|
public virtual CalendarAlgorithmType AlgorithmType
|
|
{
|
|
[Token(Token = "0x6001AB0")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "9")]
|
|
get
|
|
{
|
|
return CalendarAlgorithmType.Unknown;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this <see cref="T:System.Globalization.Calendar" /> object is read-only.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this <see cref="T:System.Globalization.Calendar" /> object is read-only; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000333 RID: 819
|
|
// (get) Token: 0x06001AB1 RID: 6833 RVA: 0x00011CD0 File Offset: 0x0000FED0
|
|
[Token(Token = "0x17000333")]
|
|
[ComVisible(false)]
|
|
public bool IsReadOnly
|
|
{
|
|
[Token(Token = "0x6001AB1")]
|
|
[Address(RVA = "0x4987D0", Offset = "0x4977D0", VA = "0x1804987D0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a new object that is a copy of the current <see cref="T:System.Globalization.Calendar" /> object.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Object" /> that is the memberwise clone of the current <see cref="T:System.Globalization.Calendar" /> object.</returns>
|
|
// Token: 0x06001AB2 RID: 6834 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001AB2")]
|
|
[Address(RVA = "0x716BA0", Offset = "0x715BA0", VA = "0x180716BA0", Slot = "10")]
|
|
[ComVisible(false)]
|
|
public virtual object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a read-only version of the specified <see cref="T:System.Globalization.Calendar" /> object.</summary>
|
|
/// <param name="calendar">A <see cref="T:System.Globalization.Calendar" /> object.</param>
|
|
/// <returns>The <see cref="T:System.Globalization.Calendar" /> object specified by the <paramref name="calendar" /> parameter, if <paramref name="calendar" /> is read-only.
|
|
/// -or-
|
|
/// A read-only memberwise clone of the <see cref="T:System.Globalization.Calendar" /> object specified by <paramref name="calendar" />, if <paramref name="calendar" /> is not read-only.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="calendar" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06001AB3 RID: 6835 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001AB3")]
|
|
[Address(RVA = "0x717620", Offset = "0x716620", VA = "0x180717620")]
|
|
[ComVisible(false)]
|
|
public static Calendar ReadOnly(Calendar calendar)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001AB4 RID: 6836 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AB4")]
|
|
[Address(RVA = "0x717B10", Offset = "0x716B10", VA = "0x180717B10")]
|
|
internal void VerifyWritable()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001AB5 RID: 6837 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AB5")]
|
|
[Address(RVA = "0x5ABEA0", Offset = "0x5AAEA0", VA = "0x1805ABEA0")]
|
|
internal void SetReadOnlyState(bool readOnly)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000334 RID: 820
|
|
// (get) Token: 0x06001AB6 RID: 6838 RVA: 0x00011CE8 File Offset: 0x0000FEE8
|
|
[Token(Token = "0x17000334")]
|
|
internal virtual int CurrentEraValue
|
|
{
|
|
[Token(Token = "0x6001AB6")]
|
|
[Address(RVA = "0x717BB0", Offset = "0x716BB0", VA = "0x180717BB0", Slot = "11")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001AB7 RID: 6839 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AB7")]
|
|
[Address(RVA = "0x716A70", Offset = "0x715A70", VA = "0x180716A70")]
|
|
internal static void CheckAddResult(long ticks, DateTime minValue, DateTime maxValue)
|
|
{
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns a <see cref="T:System.DateTime" /> that is the specified number of months away from the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to which to add months.</param>
|
|
/// <param name="months">The number of months to add.</param>
|
|
/// <returns>The <see cref="T:System.DateTime" /> that results from adding the specified number of months to the specified <see cref="T:System.DateTime" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The resulting <see cref="T:System.DateTime" /> is outside the supported range of this calendar.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="months" /> is outside the supported range of the <see cref="T:System.DateTime" /> return value.</exception>
|
|
// Token: 0x06001AB8 RID: 6840
|
|
[Token(Token = "0x6001AB8")]
|
|
[Address(Slot = "12")]
|
|
public abstract DateTime AddMonths(DateTime time, int months);
|
|
|
|
/// <summary>When overridden in a derived class, returns a <see cref="T:System.DateTime" /> that is the specified number of years away from the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to which to add years.</param>
|
|
/// <param name="years">The number of years to add.</param>
|
|
/// <returns>The <see cref="T:System.DateTime" /> that results from adding the specified number of years to the specified <see cref="T:System.DateTime" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The resulting <see cref="T:System.DateTime" /> is outside the supported range of this calendar.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="years" /> is outside the supported range of the <see cref="T:System.DateTime" /> return value.</exception>
|
|
// Token: 0x06001AB9 RID: 6841
|
|
[Token(Token = "0x6001AB9")]
|
|
[Address(Slot = "13")]
|
|
public abstract DateTime AddYears(DateTime time, int years);
|
|
|
|
/// <summary>When overridden in a derived class, returns the day of the month in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>A positive integer that represents the day of the month in the <paramref name="time" /> parameter.</returns>
|
|
// Token: 0x06001ABA RID: 6842
|
|
[Token(Token = "0x6001ABA")]
|
|
[Address(Slot = "14")]
|
|
public abstract int GetDayOfMonth(DateTime time);
|
|
|
|
/// <summary>When overridden in a derived class, returns the day of the week in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>A <see cref="T:System.DayOfWeek" /> value that represents the day of the week in the <paramref name="time" /> parameter.</returns>
|
|
// Token: 0x06001ABB RID: 6843
|
|
[Token(Token = "0x6001ABB")]
|
|
[Address(Slot = "15")]
|
|
public abstract DayOfWeek GetDayOfWeek(DateTime time);
|
|
|
|
/// <summary>When overridden in a derived class, returns the day of the year in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>A positive integer that represents the day of the year in the <paramref name="time" /> parameter.</returns>
|
|
// Token: 0x06001ABC RID: 6844
|
|
[Token(Token = "0x6001ABC")]
|
|
[Address(Slot = "16")]
|
|
public abstract int GetDayOfYear(DateTime time);
|
|
|
|
/// <summary>Returns the number of days in the specified month and year of the current era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <returns>The number of days in the specified month in the specified year in the current era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ABD RID: 6845 RVA: 0x00011D00 File Offset: 0x0000FF00
|
|
[Token(Token = "0x6001ABD")]
|
|
[Address(RVA = "0x716C70", Offset = "0x715C70", VA = "0x180716C70", Slot = "17")]
|
|
public virtual int GetDaysInMonth(int year, int month)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns the number of days in the specified month, year, and era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>The number of days in the specified month in the specified year in the specified era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ABE RID: 6846
|
|
[Token(Token = "0x6001ABE")]
|
|
[Address(Slot = "18")]
|
|
public abstract int GetDaysInMonth(int year, int month, int era);
|
|
|
|
/// <summary>When overridden in a derived class, returns the number of days in the specified year and era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>The number of days in the specified year in the specified era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ABF RID: 6847
|
|
[Token(Token = "0x6001ABF")]
|
|
[Address(Slot = "19")]
|
|
public abstract int GetDaysInYear(int year, int era);
|
|
|
|
/// <summary>When overridden in a derived class, returns the era in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>An integer that represents the era in <paramref name="time" />.</returns>
|
|
// Token: 0x06001AC0 RID: 6848
|
|
[Token(Token = "0x6001AC0")]
|
|
[Address(Slot = "20")]
|
|
public abstract int GetEra(DateTime time);
|
|
|
|
/// <summary>When overridden in a derived class, gets the list of eras in the current calendar.</summary>
|
|
/// <returns>An array of integers that represents the eras in the current calendar.</returns>
|
|
// Token: 0x17000335 RID: 821
|
|
// (get) Token: 0x06001AC1 RID: 6849
|
|
[Token(Token = "0x17000335")]
|
|
public abstract int[] Eras
|
|
{
|
|
[Token(Token = "0x6001AC1")]
|
|
[Address(Slot = "21")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns the month in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>A positive integer that represents the month in <paramref name="time" />.</returns>
|
|
// Token: 0x06001AC2 RID: 6850
|
|
[Token(Token = "0x6001AC2")]
|
|
[Address(Slot = "22")]
|
|
public abstract int GetMonth(DateTime time);
|
|
|
|
/// <summary>When overridden in a derived class, returns the number of months in the specified year in the specified era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>The number of months in the specified year in the specified era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001AC3 RID: 6851
|
|
[Token(Token = "0x6001AC3")]
|
|
[Address(Slot = "23")]
|
|
public abstract int GetMonthsInYear(int year, int era);
|
|
|
|
// Token: 0x06001AC4 RID: 6852 RVA: 0x00011D18 File Offset: 0x0000FF18
|
|
[Token(Token = "0x6001AC4")]
|
|
[Address(RVA = "0x716CA0", Offset = "0x715CA0", VA = "0x180716CA0")]
|
|
internal int GetFirstDayWeekOfYear(DateTime time, int firstDayOfWeek)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001AC5 RID: 6853 RVA: 0x00011D30 File Offset: 0x0000FF30
|
|
[Token(Token = "0x6001AC5")]
|
|
[Address(RVA = "0x716E60", Offset = "0x715E60", VA = "0x180716E60")]
|
|
private int GetWeekOfYearFullDays(DateTime time, int firstDayOfWeek, int fullDays)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001AC6 RID: 6854 RVA: 0x00011D48 File Offset: 0x0000FF48
|
|
[Token(Token = "0x6001AC6")]
|
|
[Address(RVA = "0x717020", Offset = "0x716020", VA = "0x180717020")]
|
|
private int GetWeekOfYearOfMinSupportedDateTime(int firstDayOfWeek, int minimumDaysInFirstWeek)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the number of days in the year that precedes the year that is specified by the <see cref="P:System.Globalization.Calendar.MinSupportedDateTime" /> property.</summary>
|
|
/// <returns>The number of days in the year that precedes the year specified by <see cref="P:System.Globalization.Calendar.MinSupportedDateTime" />.</returns>
|
|
// Token: 0x17000336 RID: 822
|
|
// (get) Token: 0x06001AC7 RID: 6855 RVA: 0x00011D60 File Offset: 0x0000FF60
|
|
[Token(Token = "0x17000336")]
|
|
protected virtual int DaysInYearBeforeMinSupportedYear
|
|
{
|
|
[Token(Token = "0x6001AC7")]
|
|
[Address(RVA = "0x717DB0", Offset = "0x716DB0", VA = "0x180717DB0", Slot = "24")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the week of the year that includes the date in the specified <see cref="T:System.DateTime" /> value.</summary>
|
|
/// <param name="time">A date and time value.</param>
|
|
/// <param name="rule">An enumeration value that defines a calendar week.</param>
|
|
/// <param name="firstDayOfWeek">An enumeration value that represents the first day of the week.</param>
|
|
/// <returns>A positive integer that represents the week of the year that includes the date in the <paramref name="time" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="time" /> is earlier than <see cref="P:System.Globalization.Calendar.MinSupportedDateTime" /> or later than <see cref="P:System.Globalization.Calendar.MaxSupportedDateTime" />.
|
|
/// -or-
|
|
/// <paramref name="firstDayOfWeek" /> is not a valid <see cref="T:System.DayOfWeek" /> value.
|
|
/// -or-
|
|
/// <paramref name="rule" /> is not a valid <see cref="T:System.Globalization.CalendarWeekRule" /> value.</exception>
|
|
// Token: 0x06001AC8 RID: 6856 RVA: 0x00011D78 File Offset: 0x0000FF78
|
|
[Token(Token = "0x6001AC8")]
|
|
[Address(RVA = "0x717180", Offset = "0x716180", VA = "0x180717180", Slot = "25")]
|
|
public virtual int GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns the year in the specified <see cref="T:System.DateTime" />.</summary>
|
|
/// <param name="time">The <see cref="T:System.DateTime" /> to read.</param>
|
|
/// <returns>An integer that represents the year in <paramref name="time" />.</returns>
|
|
// Token: 0x06001AC9 RID: 6857
|
|
[Token(Token = "0x6001AC9")]
|
|
[Address(Slot = "26")]
|
|
public abstract int GetYear(DateTime time);
|
|
|
|
/// <summary>When overridden in a derived class, determines whether the specified date in the specified era is a leap day.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <param name="day">A positive integer that represents the day.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified day is a leap day; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="day" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ACA RID: 6858
|
|
[Token(Token = "0x6001ACA")]
|
|
[Address(Slot = "27")]
|
|
public abstract bool IsLeapDay(int year, int month, int day, int era);
|
|
|
|
/// <summary>When overridden in a derived class, determines whether the specified month in the specified year in the specified era is a leap month.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified month is a leap month; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ACB RID: 6859
|
|
[Token(Token = "0x6001ACB")]
|
|
[Address(Slot = "28")]
|
|
public abstract bool IsLeapMonth(int year, int month, int era);
|
|
|
|
/// <summary>Calculates the leap month for a specified year and era.</summary>
|
|
/// <param name="year">A year.</param>
|
|
/// <param name="era">An era.</param>
|
|
/// <returns>A positive integer that indicates the leap month in the specified year and era.
|
|
/// -or-
|
|
/// Zero if this calendar does not support a leap month or if the <paramref name="year" /> and <paramref name="era" /> parameters do not specify a leap year.</returns>
|
|
// Token: 0x06001ACC RID: 6860 RVA: 0x00011D90 File Offset: 0x0000FF90
|
|
[Token(Token = "0x6001ACC")]
|
|
[Address(RVA = "0x716D60", Offset = "0x715D60", VA = "0x180716D60", Slot = "29")]
|
|
[ComVisible(false)]
|
|
public virtual int GetLeapMonth(int year, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Determines whether the specified year in the current era is a leap year.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified year is a leap year; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ACD RID: 6861 RVA: 0x00011DA8 File Offset: 0x0000FFA8
|
|
[Token(Token = "0x6001ACD")]
|
|
[Address(RVA = "0x717460", Offset = "0x716460", VA = "0x180717460", Slot = "30")]
|
|
public virtual bool IsLeapYear(int year)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, determines whether the specified year in the specified era is a leap year.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified year is a leap year; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001ACE RID: 6862
|
|
[Token(Token = "0x6001ACE")]
|
|
[Address(Slot = "31")]
|
|
public abstract bool IsLeapYear(int year, int era);
|
|
|
|
/// <summary>Returns a <see cref="T:System.DateTime" /> that is set to the specified date and time in the current era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <param name="day">A positive integer that represents the day.</param>
|
|
/// <param name="hour">An integer from 0 to 23 that represents the hour.</param>
|
|
/// <param name="minute">An integer from 0 to 59 that represents the minute.</param>
|
|
/// <param name="second">An integer from 0 to 59 that represents the second.</param>
|
|
/// <param name="millisecond">An integer from 0 to 999 that represents the millisecond.</param>
|
|
/// <returns>The <see cref="T:System.DateTime" /> that is set to the specified date and time in the current era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="day" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="hour" /> is less than zero or greater than 23.
|
|
/// -or-
|
|
/// <paramref name="minute" /> is less than zero or greater than 59.
|
|
/// -or-
|
|
/// <paramref name="second" /> is less than zero or greater than 59.
|
|
/// -or-
|
|
/// <paramref name="millisecond" /> is less than zero or greater than 999.</exception>
|
|
// Token: 0x06001ACF RID: 6863 RVA: 0x00011DC0 File Offset: 0x0000FFC0
|
|
[Token(Token = "0x6001ACF")]
|
|
[Address(RVA = "0x7178A0", Offset = "0x7168A0", VA = "0x1807178A0", Slot = "32")]
|
|
public virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns a <see cref="T:System.DateTime" /> that is set to the specified date and time in the specified era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">A positive integer that represents the month.</param>
|
|
/// <param name="day">A positive integer that represents the day.</param>
|
|
/// <param name="hour">An integer from 0 to 23 that represents the hour.</param>
|
|
/// <param name="minute">An integer from 0 to 59 that represents the minute.</param>
|
|
/// <param name="second">An integer from 0 to 59 that represents the second.</param>
|
|
/// <param name="millisecond">An integer from 0 to 999 that represents the millisecond.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>The <see cref="T:System.DateTime" /> that is set to the specified date and time in the current era.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="month" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="day" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="hour" /> is less than zero or greater than 23.
|
|
/// -or-
|
|
/// <paramref name="minute" /> is less than zero or greater than 59.
|
|
/// -or-
|
|
/// <paramref name="second" /> is less than zero or greater than 59.
|
|
/// -or-
|
|
/// <paramref name="millisecond" /> is less than zero or greater than 999.
|
|
/// -or-
|
|
/// <paramref name="era" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001AD0 RID: 6864
|
|
[Token(Token = "0x6001AD0")]
|
|
[Address(Slot = "33")]
|
|
public abstract DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era);
|
|
|
|
// Token: 0x06001AD1 RID: 6865 RVA: 0x00011DD8 File Offset: 0x0000FFD8
|
|
[Token(Token = "0x6001AD1")]
|
|
[Address(RVA = "0x717A10", Offset = "0x716A10", VA = "0x180717A10", Slot = "34")]
|
|
internal virtual bool TryToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era, out DateTime result)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001AD2 RID: 6866 RVA: 0x00011DF0 File Offset: 0x0000FFF0
|
|
[Token(Token = "0x6001AD2")]
|
|
[Address(RVA = "0x717590", Offset = "0x716590", VA = "0x180717590", Slot = "35")]
|
|
internal virtual bool IsValidYear(int year, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001AD3 RID: 6867 RVA: 0x00011E08 File Offset: 0x00010008
|
|
[Token(Token = "0x6001AD3")]
|
|
[Address(RVA = "0x717510", Offset = "0x716510", VA = "0x180717510", Slot = "36")]
|
|
internal virtual bool IsValidMonth(int year, int month, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001AD4 RID: 6868 RVA: 0x00011E20 File Offset: 0x00010020
|
|
[Token(Token = "0x6001AD4")]
|
|
[Address(RVA = "0x717480", Offset = "0x716480", VA = "0x180717480", Slot = "37")]
|
|
internal virtual bool IsValidDay(int year, int month, int day, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.</summary>
|
|
/// <returns>The last year of a 100-year range that can be represented by a 2-digit year.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Globalization.Calendar" /> object is read-only.</exception>
|
|
// Token: 0x17000337 RID: 823
|
|
// (get) Token: 0x06001AD5 RID: 6869 RVA: 0x00011E38 File Offset: 0x00010038
|
|
// (set) Token: 0x06001AD6 RID: 6870 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000337")]
|
|
public virtual int TwoDigitYearMax
|
|
{
|
|
[Token(Token = "0x6001AD5")]
|
|
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "38")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6001AD6")]
|
|
[Address(RVA = "0x717E80", Offset = "0x716E80", VA = "0x180717E80", Slot = "39")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Converts the specified year to a four-digit year by using the <see cref="P:System.Globalization.Calendar.TwoDigitYearMax" /> property to determine the appropriate century.</summary>
|
|
/// <param name="year">A two-digit or four-digit integer that represents the year to convert.</param>
|
|
/// <returns>An integer that contains the four-digit representation of <paramref name="year" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001AD7 RID: 6871 RVA: 0x00011E50 File Offset: 0x00010050
|
|
[Token(Token = "0x6001AD7")]
|
|
[Address(RVA = "0x717900", Offset = "0x716900", VA = "0x180717900", Slot = "40")]
|
|
public virtual int ToFourDigitYear(int year)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001AD8 RID: 6872 RVA: 0x00011E68 File Offset: 0x00010068
|
|
[Token(Token = "0x6001AD8")]
|
|
[Address(RVA = "0x717700", Offset = "0x716700", VA = "0x180717700")]
|
|
internal static long TimeToTicks(int hour, int minute, int second, int millisecond)
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
// Token: 0x06001AD9 RID: 6873 RVA: 0x00011E80 File Offset: 0x00010080
|
|
[Token(Token = "0x6001AD9")]
|
|
[Address(RVA = "0x716E10", Offset = "0x715E10", VA = "0x180716E10")]
|
|
internal static int GetSystemTwoDigitYearSetting(int CalID, int defaultYearValue)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04000E0E RID: 3598
|
|
[Token(Token = "0x4000E0E")]
|
|
internal const long TicksPerMillisecond = 10000L;
|
|
|
|
// Token: 0x04000E0F RID: 3599
|
|
[Token(Token = "0x4000E0F")]
|
|
internal const long TicksPerSecond = 10000000L;
|
|
|
|
// Token: 0x04000E10 RID: 3600
|
|
[Token(Token = "0x4000E10")]
|
|
internal const long TicksPerMinute = 600000000L;
|
|
|
|
// Token: 0x04000E11 RID: 3601
|
|
[Token(Token = "0x4000E11")]
|
|
internal const long TicksPerHour = 36000000000L;
|
|
|
|
// Token: 0x04000E12 RID: 3602
|
|
[Token(Token = "0x4000E12")]
|
|
internal const long TicksPerDay = 864000000000L;
|
|
|
|
// Token: 0x04000E13 RID: 3603
|
|
[Token(Token = "0x4000E13")]
|
|
internal const int MillisPerSecond = 1000;
|
|
|
|
// Token: 0x04000E14 RID: 3604
|
|
[Token(Token = "0x4000E14")]
|
|
internal const int MillisPerMinute = 60000;
|
|
|
|
// Token: 0x04000E15 RID: 3605
|
|
[Token(Token = "0x4000E15")]
|
|
internal const int MillisPerHour = 3600000;
|
|
|
|
// Token: 0x04000E16 RID: 3606
|
|
[Token(Token = "0x4000E16")]
|
|
internal const int MillisPerDay = 86400000;
|
|
|
|
// Token: 0x04000E17 RID: 3607
|
|
[Token(Token = "0x4000E17")]
|
|
internal const int DaysPerYear = 365;
|
|
|
|
// Token: 0x04000E18 RID: 3608
|
|
[Token(Token = "0x4000E18")]
|
|
internal const int DaysPer4Years = 1461;
|
|
|
|
// Token: 0x04000E19 RID: 3609
|
|
[Token(Token = "0x4000E19")]
|
|
internal const int DaysPer100Years = 36524;
|
|
|
|
// Token: 0x04000E1A RID: 3610
|
|
[Token(Token = "0x4000E1A")]
|
|
internal const int DaysPer400Years = 146097;
|
|
|
|
// Token: 0x04000E1B RID: 3611
|
|
[Token(Token = "0x4000E1B")]
|
|
internal const int DaysTo10000 = 3652059;
|
|
|
|
// Token: 0x04000E1C RID: 3612
|
|
[Token(Token = "0x4000E1C")]
|
|
internal const long MaxMillis = 315537897600000L;
|
|
|
|
// Token: 0x04000E1D RID: 3613
|
|
[Token(Token = "0x4000E1D")]
|
|
internal const int CAL_GREGORIAN = 1;
|
|
|
|
// Token: 0x04000E1E RID: 3614
|
|
[Token(Token = "0x4000E1E")]
|
|
internal const int CAL_GREGORIAN_US = 2;
|
|
|
|
// Token: 0x04000E1F RID: 3615
|
|
[Token(Token = "0x4000E1F")]
|
|
internal const int CAL_JAPAN = 3;
|
|
|
|
// Token: 0x04000E20 RID: 3616
|
|
[Token(Token = "0x4000E20")]
|
|
internal const int CAL_TAIWAN = 4;
|
|
|
|
// Token: 0x04000E21 RID: 3617
|
|
[Token(Token = "0x4000E21")]
|
|
internal const int CAL_KOREA = 5;
|
|
|
|
// Token: 0x04000E22 RID: 3618
|
|
[Token(Token = "0x4000E22")]
|
|
internal const int CAL_HIJRI = 6;
|
|
|
|
// Token: 0x04000E23 RID: 3619
|
|
[Token(Token = "0x4000E23")]
|
|
internal const int CAL_THAI = 7;
|
|
|
|
// Token: 0x04000E24 RID: 3620
|
|
[Token(Token = "0x4000E24")]
|
|
internal const int CAL_HEBREW = 8;
|
|
|
|
// Token: 0x04000E25 RID: 3621
|
|
[Token(Token = "0x4000E25")]
|
|
internal const int CAL_GREGORIAN_ME_FRENCH = 9;
|
|
|
|
// Token: 0x04000E26 RID: 3622
|
|
[Token(Token = "0x4000E26")]
|
|
internal const int CAL_GREGORIAN_ARABIC = 10;
|
|
|
|
// Token: 0x04000E27 RID: 3623
|
|
[Token(Token = "0x4000E27")]
|
|
internal const int CAL_GREGORIAN_XLIT_ENGLISH = 11;
|
|
|
|
// Token: 0x04000E28 RID: 3624
|
|
[Token(Token = "0x4000E28")]
|
|
internal const int CAL_GREGORIAN_XLIT_FRENCH = 12;
|
|
|
|
// Token: 0x04000E29 RID: 3625
|
|
[Token(Token = "0x4000E29")]
|
|
internal const int CAL_JULIAN = 13;
|
|
|
|
// Token: 0x04000E2A RID: 3626
|
|
[Token(Token = "0x4000E2A")]
|
|
internal const int CAL_JAPANESELUNISOLAR = 14;
|
|
|
|
// Token: 0x04000E2B RID: 3627
|
|
[Token(Token = "0x4000E2B")]
|
|
internal const int CAL_CHINESELUNISOLAR = 15;
|
|
|
|
// Token: 0x04000E2C RID: 3628
|
|
[Token(Token = "0x4000E2C")]
|
|
internal const int CAL_SAKA = 16;
|
|
|
|
// Token: 0x04000E2D RID: 3629
|
|
[Token(Token = "0x4000E2D")]
|
|
internal const int CAL_LUNAR_ETO_CHN = 17;
|
|
|
|
// Token: 0x04000E2E RID: 3630
|
|
[Token(Token = "0x4000E2E")]
|
|
internal const int CAL_LUNAR_ETO_KOR = 18;
|
|
|
|
// Token: 0x04000E2F RID: 3631
|
|
[Token(Token = "0x4000E2F")]
|
|
internal const int CAL_LUNAR_ETO_ROKUYOU = 19;
|
|
|
|
// Token: 0x04000E30 RID: 3632
|
|
[Token(Token = "0x4000E30")]
|
|
internal const int CAL_KOREANLUNISOLAR = 20;
|
|
|
|
// Token: 0x04000E31 RID: 3633
|
|
[Token(Token = "0x4000E31")]
|
|
internal const int CAL_TAIWANLUNISOLAR = 21;
|
|
|
|
// Token: 0x04000E32 RID: 3634
|
|
[Token(Token = "0x4000E32")]
|
|
internal const int CAL_PERSIAN = 22;
|
|
|
|
// Token: 0x04000E33 RID: 3635
|
|
[Token(Token = "0x4000E33")]
|
|
internal const int CAL_UMALQURA = 23;
|
|
|
|
// Token: 0x04000E34 RID: 3636
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000E34")]
|
|
internal int m_currentEraValue;
|
|
|
|
// Token: 0x04000E35 RID: 3637
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4000E35")]
|
|
[OptionalField]
|
|
private bool m_isReadOnly;
|
|
|
|
/// <summary>Represents the current era of the current calendar. The value of this field is 0.</summary>
|
|
// Token: 0x04000E36 RID: 3638
|
|
[Token(Token = "0x4000E36")]
|
|
public const int CurrentEra = 0;
|
|
|
|
// Token: 0x04000E37 RID: 3639
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000E37")]
|
|
internal int twoDigitYearMax;
|
|
}
|
|
}
|