317 lines
15 KiB
C#
317 lines
15 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Globalization
|
|
{
|
|
/// <summary>Represents the Gregorian calendar.</summary>
|
|
// Token: 0x020002D4 RID: 724
|
|
[Token(Token = "0x20002D4")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class GregorianCalendar : Calendar
|
|
{
|
|
// Token: 0x06001AE6 RID: 6886 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AE6")]
|
|
[Address(RVA = "0x2C098C0", Offset = "0x2C086C0", VA = "0x182C098C0")]
|
|
[OnDeserialized]
|
|
private void OnDeserialized(StreamingContext ctx)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the earliest date and time supported by the <see cref="T:System.Globalization.GregorianCalendar" /> type.</summary>
|
|
/// <returns>The earliest date and time supported by the <see cref="T:System.Globalization.GregorianCalendar" /> type, which is the first moment of January 1, 0001 C.E. and is equivalent to <see cref="F:System.DateTime.MinValue" />.</returns>
|
|
// Token: 0x1700035C RID: 860
|
|
// (get) Token: 0x06001AE7 RID: 6887 RVA: 0x000118C8 File Offset: 0x0000FAC8
|
|
[Token(Token = "0x1700035C")]
|
|
[ComVisible(false)]
|
|
public override DateTime MinSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AE7")]
|
|
[Address(RVA = "0x2C09F90", Offset = "0x2C08D90", VA = "0x182C09F90", Slot = "5")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the latest date and time supported by the <see cref="T:System.Globalization.GregorianCalendar" /> type.</summary>
|
|
/// <returns>The latest date and time supported by the <see cref="T:System.Globalization.GregorianCalendar" /> type, which is the last moment of December 31, 9999 C.E. and is equivalent to <see cref="F:System.DateTime.MaxValue" />.</returns>
|
|
// Token: 0x1700035D RID: 861
|
|
// (get) Token: 0x06001AE8 RID: 6888 RVA: 0x000118E0 File Offset: 0x0000FAE0
|
|
[Token(Token = "0x1700035D")]
|
|
[ComVisible(false)]
|
|
public override DateTime MaxSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001AE8")]
|
|
[Address(RVA = "0x2C09F30", Offset = "0x2C08D30", VA = "0x182C09F30", Slot = "6")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001AE9 RID: 6889 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001AE9")]
|
|
[Address(RVA = "0x2C09420", Offset = "0x2C08220", VA = "0x182C09420")]
|
|
internal static Calendar GetDefaultInstance()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.GregorianCalendar" /> class using the default <see cref="T:System.Globalization.GregorianCalendarTypes" /> value.</summary>
|
|
// Token: 0x06001AEA RID: 6890 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AEA")]
|
|
[Address(RVA = "0x2C09EC0", Offset = "0x2C08CC0", VA = "0x182C09EC0")]
|
|
public GregorianCalendar()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.GregorianCalendar" /> class using the specified <see cref="T:System.Globalization.GregorianCalendarTypes" /> value.</summary>
|
|
/// <param name="type">The <see cref="T:System.Globalization.GregorianCalendarTypes" /> value that denotes which language version of the calendar to create.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="type" /> is not a member of the <see cref="T:System.Globalization.GregorianCalendarTypes" /> enumeration.</exception>
|
|
// Token: 0x06001AEB RID: 6891 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001AEB")]
|
|
[Address(RVA = "0x2C09D90", Offset = "0x2C08B90", VA = "0x182C09D90")]
|
|
public GregorianCalendar(GregorianCalendarTypes type)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700035E RID: 862
|
|
// (get) Token: 0x06001AEC RID: 6892 RVA: 0x000118F8 File Offset: 0x0000FAF8
|
|
[Token(Token = "0x1700035E")]
|
|
internal override int ID
|
|
{
|
|
[Token(Token = "0x6001AEC")]
|
|
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310", Slot = "7")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001AED RID: 6893 RVA: 0x00011910 File Offset: 0x0000FB10
|
|
[Token(Token = "0x6001AED")]
|
|
[Address(RVA = "0x2C08ED0", Offset = "0x2C07CD0", VA = "0x182C08ED0", Slot = "29")]
|
|
internal virtual int GetDatePart(long ticks, int part)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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>An integer from 1 to 31 that represents the day of the month in <paramref name="time" />.</returns>
|
|
// Token: 0x06001AEE RID: 6894 RVA: 0x00011928 File Offset: 0x0000FB28
|
|
[Token(Token = "0x6001AEE")]
|
|
[Address(RVA = "0x2C090C0", Offset = "0x2C07EC0", VA = "0x182C090C0", Slot = "11")]
|
|
public override int GetDayOfMonth(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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 <paramref name="time" />.</returns>
|
|
// Token: 0x06001AEF RID: 6895 RVA: 0x00011940 File Offset: 0x0000FB40
|
|
[Token(Token = "0x6001AEF")]
|
|
[Address(RVA = "0x2C09100", Offset = "0x2C07F00", VA = "0x182C09100", Slot = "12")]
|
|
public override DayOfWeek GetDayOfWeek(DateTime time)
|
|
{
|
|
return DayOfWeek.Sunday;
|
|
}
|
|
|
|
/// <summary>Returns the number of days in the specified month in the specified year in the specified era.</summary>
|
|
/// <param name="year">An integer that represents the year.</param>
|
|
/// <param name="month">An integer from 1 to 12 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="era" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <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: 0x06001AF0 RID: 6896 RVA: 0x00011958 File Offset: 0x0000FB58
|
|
[Token(Token = "0x6001AF0")]
|
|
[Address(RVA = "0x2C09150", Offset = "0x2C07F50", VA = "0x182C09150", Slot = "13")]
|
|
public override int GetDaysInMonth(int year, int month, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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: 0x06001AF1 RID: 6897 RVA: 0x00011970 File Offset: 0x0000FB70
|
|
[Token(Token = "0x6001AF1")]
|
|
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "14")]
|
|
public override int GetEra(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the list of eras in the <see cref="T:System.Globalization.GregorianCalendar" />.</summary>
|
|
/// <returns>An array of integers that represents the eras in the <see cref="T:System.Globalization.GregorianCalendar" />.</returns>
|
|
// Token: 0x1700035F RID: 863
|
|
// (get) Token: 0x06001AF2 RID: 6898 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700035F")]
|
|
public override int[] Eras
|
|
{
|
|
[Token(Token = "0x6001AF2")]
|
|
[Address(RVA = "0x2C09ED0", Offset = "0x2C08CD0", VA = "0x182C09ED0", Slot = "15")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>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>An integer from 1 to 12 that represents the month in <paramref name="time" />.</returns>
|
|
// Token: 0x06001AF3 RID: 6899 RVA: 0x00011988 File Offset: 0x0000FB88
|
|
[Token(Token = "0x6001AF3")]
|
|
[Address(RVA = "0x2C09520", Offset = "0x2C08320", VA = "0x182C09520", Slot = "16")]
|
|
public override int GetMonth(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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="era" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001AF4 RID: 6900 RVA: 0x000119A0 File Offset: 0x0000FBA0
|
|
[Token(Token = "0x6001AF4")]
|
|
[Address(RVA = "0x2C09560", Offset = "0x2C08360", VA = "0x182C09560", Slot = "17")]
|
|
public override int GetMonthsInYear(int year, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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: 0x06001AF5 RID: 6901 RVA: 0x000119B8 File Offset: 0x0000FBB8
|
|
[Token(Token = "0x6001AF5")]
|
|
[Address(RVA = "0x2C096C0", Offset = "0x2C084C0", VA = "0x182C096C0", Slot = "18")]
|
|
public override int GetYear(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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="era" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <paramref name="year" /> is outside the range supported by the calendar.</exception>
|
|
// Token: 0x06001AF6 RID: 6902 RVA: 0x000119D0 File Offset: 0x0000FBD0
|
|
[Token(Token = "0x6001AF6")]
|
|
[Address(RVA = "0x2C09700", Offset = "0x2C08500", VA = "0x182C09700", Slot = "20")]
|
|
public override bool IsLeapYear(int year, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>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">An integer from 1 to 12 that represents the month.</param>
|
|
/// <param name="day">An integer from 1 to 31 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="era" /> is outside the range supported by the calendar.
|
|
/// -or-
|
|
/// <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: 0x06001AF7 RID: 6903 RVA: 0x000119E8 File Offset: 0x0000FBE8
|
|
[Token(Token = "0x6001AF7")]
|
|
[Address(RVA = "0x2C09990", Offset = "0x2C08790", VA = "0x182C09990", Slot = "22")]
|
|
public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
|
|
// Token: 0x06001AF8 RID: 6904 RVA: 0x00011A00 File Offset: 0x0000FC00
|
|
[Token(Token = "0x6001AF8")]
|
|
[Address(RVA = "0x2C09BE0", Offset = "0x2C089E0", VA = "0x182C09BE0", Slot = "23")]
|
|
internal override bool TryToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era, out DateTime result)
|
|
{
|
|
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.ArgumentOutOfRangeException">The value specified in a set operation is less than 99.
|
|
/// -or-
|
|
/// The value specified in a set operation is greater than <see langword="MaxSupportedDateTime.Year" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">In a set operation, the current instance is read-only.</exception>
|
|
// Token: 0x17000360 RID: 864
|
|
// (get) Token: 0x06001AF9 RID: 6905 RVA: 0x00011A18 File Offset: 0x0000FC18
|
|
[Token(Token = "0x17000360")]
|
|
public override int TwoDigitYearMax
|
|
{
|
|
[Token(Token = "0x6001AF9")]
|
|
[Address(RVA = "0x2C09FF0", Offset = "0x2C08DF0", VA = "0x182C09FF0", Slot = "27")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Converts the specified year to a four-digit year by using the <see cref="P:System.Globalization.GregorianCalendar.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: 0x06001AFA RID: 6906 RVA: 0x00011A30 File Offset: 0x0000FC30
|
|
[Token(Token = "0x6001AFA")]
|
|
[Address(RVA = "0x2C09A80", Offset = "0x2C08880", VA = "0x182C09A80", Slot = "28")]
|
|
public override int ToFourDigitYear(int year)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04000EE5 RID: 3813
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000EE5")]
|
|
internal GregorianCalendarTypes m_type;
|
|
|
|
// Token: 0x04000EE6 RID: 3814
|
|
[Token(Token = "0x4000EE6")]
|
|
internal static readonly int[] DaysToMonth365;
|
|
|
|
// Token: 0x04000EE7 RID: 3815
|
|
[Token(Token = "0x4000EE7")]
|
|
internal static readonly int[] DaysToMonth366;
|
|
|
|
// Token: 0x04000EE8 RID: 3816
|
|
[Token(Token = "0x4000EE8")]
|
|
private static Calendar s_defaultInstance;
|
|
}
|
|
}
|