523 lines
25 KiB
C#
523 lines
25 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Globalization
|
|
{
|
|
/// <summary>Represents the Gregorian calendar.</summary>
|
|
// Token: 0x020002E3 RID: 739
|
|
[Token(Token = "0x20002E3")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class GregorianCalendar : Calendar
|
|
{
|
|
// Token: 0x06001BBE RID: 7102 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001BBE")]
|
|
[Address(RVA = "0xE29350", Offset = "0xE28350", VA = "0x180E29350")]
|
|
[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: 0x17000385 RID: 901
|
|
// (get) Token: 0x06001BBF RID: 7103 RVA: 0x000126A8 File Offset: 0x000108A8
|
|
[Token(Token = "0x17000385")]
|
|
[ComVisible(false)]
|
|
public override DateTime MinSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001BBF")]
|
|
[Address(RVA = "0xE29A50", Offset = "0xE28A50", VA = "0x180E29A50", 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: 0x17000386 RID: 902
|
|
// (get) Token: 0x06001BC0 RID: 7104 RVA: 0x000126C0 File Offset: 0x000108C0
|
|
[Token(Token = "0x17000386")]
|
|
[ComVisible(false)]
|
|
public override DateTime MaxSupportedDateTime
|
|
{
|
|
[Token(Token = "0x6001BC0")]
|
|
[Address(RVA = "0xE299F0", Offset = "0xE289F0", VA = "0x180E299F0", Slot = "6")]
|
|
get
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates whether the current calendar is solar-based, lunar-based, or a combination of both.</summary>
|
|
/// <returns>Always returns <see cref="F:System.Globalization.CalendarAlgorithmType.SolarCalendar" />.</returns>
|
|
// Token: 0x17000387 RID: 903
|
|
// (get) Token: 0x06001BC1 RID: 7105 RVA: 0x000126D8 File Offset: 0x000108D8
|
|
[Token(Token = "0x17000387")]
|
|
[ComVisible(false)]
|
|
public override CalendarAlgorithmType AlgorithmType
|
|
{
|
|
[Token(Token = "0x6001BC1")]
|
|
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "9")]
|
|
get
|
|
{
|
|
return CalendarAlgorithmType.Unknown;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001BC2 RID: 7106 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001BC2")]
|
|
[Address(RVA = "0xE28750", Offset = "0xE27750", VA = "0x180E28750")]
|
|
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: 0x06001BC3 RID: 7107 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001BC3")]
|
|
[Address(RVA = "0xE29950", Offset = "0xE28950", VA = "0x180E29950")]
|
|
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: 0x06001BC4 RID: 7108 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001BC4")]
|
|
[Address(RVA = "0xE29820", Offset = "0xE28820", VA = "0x180E29820")]
|
|
public GregorianCalendar(GregorianCalendarTypes type)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the <see cref="T:System.Globalization.GregorianCalendarTypes" /> value that denotes the language version of the current <see cref="T:System.Globalization.GregorianCalendar" />.</summary>
|
|
/// <returns>A <see cref="T:System.Globalization.GregorianCalendarTypes" /> value that denotes the language version of the current <see cref="T:System.Globalization.GregorianCalendar" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified in a set operation is not a member of the <see cref="T:System.Globalization.GregorianCalendarTypes" /> enumeration.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">In a set operation, the current instance is read-only.</exception>
|
|
// Token: 0x17000388 RID: 904
|
|
// (get) Token: 0x06001BC5 RID: 7109 RVA: 0x000126F0 File Offset: 0x000108F0
|
|
// (set) Token: 0x06001BC6 RID: 7110 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000388")]
|
|
public virtual GregorianCalendarTypes CalendarType
|
|
{
|
|
[Token(Token = "0x6001BC5")]
|
|
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70", Slot = "41")]
|
|
get
|
|
{
|
|
return (GregorianCalendarTypes)0;
|
|
}
|
|
[Token(Token = "0x6001BC6")]
|
|
[Address(RVA = "0xE29AF0", Offset = "0xE28AF0", VA = "0x180E29AF0", Slot = "42")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000389 RID: 905
|
|
// (get) Token: 0x06001BC7 RID: 7111 RVA: 0x00012708 File Offset: 0x00010908
|
|
[Token(Token = "0x17000389")]
|
|
internal override int ID
|
|
{
|
|
[Token(Token = "0x6001BC7")]
|
|
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70", Slot = "7")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001BC8 RID: 7112 RVA: 0x00012720 File Offset: 0x00010920
|
|
[Token(Token = "0x6001BC8")]
|
|
[Address(RVA = "0xE28000", Offset = "0xE27000", VA = "0x180E28000", Slot = "43")]
|
|
internal virtual int GetDatePart(long ticks, int part)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06001BC9 RID: 7113 RVA: 0x00012738 File Offset: 0x00010938
|
|
[Token(Token = "0x6001BC9")]
|
|
[Address(RVA = "0xE27DF0", Offset = "0xE26DF0", VA = "0x180E27DF0")]
|
|
internal static long GetAbsoluteDate(int year, int month, int day)
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
// Token: 0x06001BCA RID: 7114 RVA: 0x00012750 File Offset: 0x00010950
|
|
[Token(Token = "0x6001BCA")]
|
|
[Address(RVA = "0xE27D70", Offset = "0xE26D70", VA = "0x180E27D70", Slot = "44")]
|
|
internal virtual long DateToTicks(int year, int month, int day)
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
/// <summary>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.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="months" /> is less than -120000.
|
|
/// -or-
|
|
/// <paramref name="months" /> is greater than 120000.</exception>
|
|
// Token: 0x06001BCB RID: 7115 RVA: 0x00012768 File Offset: 0x00010968
|
|
[Token(Token = "0x6001BCB")]
|
|
[Address(RVA = "0xE279B0", Offset = "0xE269B0", VA = "0x180E279B0", Slot = "12")]
|
|
public override DateTime AddMonths(DateTime time, int months)
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
|
|
/// <summary>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.</exception>
|
|
// Token: 0x06001BCC RID: 7116 RVA: 0x00012780 File Offset: 0x00010980
|
|
[Token(Token = "0x6001BCC")]
|
|
[Address(RVA = "0xE27D50", Offset = "0xE26D50", VA = "0x180E27D50", Slot = "13")]
|
|
public override DateTime AddYears(DateTime time, int years)
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
|
|
/// <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: 0x06001BCD RID: 7117 RVA: 0x00012798 File Offset: 0x00010998
|
|
[Token(Token = "0x6001BCD")]
|
|
[Address(RVA = "0xE281F0", Offset = "0xE271F0", VA = "0x180E281F0", Slot = "14")]
|
|
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: 0x06001BCE RID: 7118 RVA: 0x000127B0 File Offset: 0x000109B0
|
|
[Token(Token = "0x6001BCE")]
|
|
[Address(RVA = "0xE28230", Offset = "0xE27230", VA = "0x180E28230", Slot = "15")]
|
|
public override DayOfWeek GetDayOfWeek(DateTime time)
|
|
{
|
|
return DayOfWeek.Sunday;
|
|
}
|
|
|
|
/// <summary>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>An integer from 1 to 366 that represents the day of the year in <paramref name="time" />.</returns>
|
|
// Token: 0x06001BCF RID: 7119 RVA: 0x000127C8 File Offset: 0x000109C8
|
|
[Token(Token = "0x6001BCF")]
|
|
[Address(RVA = "0xE28280", Offset = "0xE27280", VA = "0x180E28280", Slot = "16")]
|
|
public override int GetDayOfYear(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <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: 0x06001BD0 RID: 7120 RVA: 0x000127E0 File Offset: 0x000109E0
|
|
[Token(Token = "0x6001BD0")]
|
|
[Address(RVA = "0xE282C0", Offset = "0xE272C0", VA = "0x180E282C0", Slot = "18")]
|
|
public override int GetDaysInMonth(int year, int month, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns the number of days 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 days 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: 0x06001BD1 RID: 7121 RVA: 0x000127F8 File Offset: 0x000109F8
|
|
[Token(Token = "0x6001BD1")]
|
|
[Address(RVA = "0xE28590", Offset = "0xE27590", VA = "0x180E28590", Slot = "19")]
|
|
public override int GetDaysInYear(int year, 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: 0x06001BD2 RID: 7122 RVA: 0x00012810 File Offset: 0x00010A10
|
|
[Token(Token = "0x6001BD2")]
|
|
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "20")]
|
|
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: 0x1700038A RID: 906
|
|
// (get) Token: 0x06001BD3 RID: 7123 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700038A")]
|
|
public override int[] Eras
|
|
{
|
|
[Token(Token = "0x6001BD3")]
|
|
[Address(RVA = "0xE29990", Offset = "0xE28990", VA = "0x180E29990", Slot = "21")]
|
|
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: 0x06001BD4 RID: 7124 RVA: 0x00012828 File Offset: 0x00010A28
|
|
[Token(Token = "0x6001BD4")]
|
|
[Address(RVA = "0xE289C0", Offset = "0xE279C0", VA = "0x180E289C0", Slot = "22")]
|
|
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: 0x06001BD5 RID: 7125 RVA: 0x00012840 File Offset: 0x00010A40
|
|
[Token(Token = "0x6001BD5")]
|
|
[Address(RVA = "0xE28A00", Offset = "0xE27A00", VA = "0x180E28A00", Slot = "23")]
|
|
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: 0x06001BD6 RID: 7126 RVA: 0x00012858 File Offset: 0x00010A58
|
|
[Token(Token = "0x6001BD6")]
|
|
[Address(RVA = "0xE28B60", Offset = "0xE27B60", VA = "0x180E28B60", Slot = "26")]
|
|
public override int GetYear(DateTime time)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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">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="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="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.</exception>
|
|
// Token: 0x06001BD7 RID: 7127 RVA: 0x00012870 File Offset: 0x00010A70
|
|
[Token(Token = "0x6001BD7")]
|
|
[Address(RVA = "0xE28BA0", Offset = "0xE27BA0", VA = "0x180E28BA0", Slot = "27")]
|
|
public override bool IsLeapDay(int year, int month, int day, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Calculates the leap month for a specified year and era.</summary>
|
|
/// <param name="year">A year.</param>
|
|
/// <param name="era">An era. Specify either <see cref="F:System.Globalization.GregorianCalendar.ADEra" /> or <see langword="GregorianCalendar.Eras[Calendar.CurrentEra]" />.</param>
|
|
/// <returns>Always 0 because the Gregorian calendar does not recognize leap months.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="year" /> is less than the Gregorian calendar year 1 or greater than the Gregorian calendar year 9999.
|
|
/// -or-
|
|
/// <paramref name="era" /> is not <see cref="F:System.Globalization.GregorianCalendar.ADEra" /> or <see langword="GregorianCalendar.Eras[Calendar.CurrentEra]" />.</exception>
|
|
// Token: 0x06001BD8 RID: 7128 RVA: 0x00012888 File Offset: 0x00010A88
|
|
[Token(Token = "0x6001BD8")]
|
|
[Address(RVA = "0xE28860", Offset = "0xE27860", VA = "0x180E28860", Slot = "29")]
|
|
[ComVisible(false)]
|
|
public override int GetLeapMonth(int year, int era)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>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">An integer from 1 to 12 that represents the month.</param>
|
|
/// <param name="era">An integer that represents the era.</param>
|
|
/// <returns>This method always returns <see langword="false" />, unless overridden by a derived class.</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: 0x06001BD9 RID: 7129 RVA: 0x000128A0 File Offset: 0x00010AA0
|
|
[Token(Token = "0x6001BD9")]
|
|
[Address(RVA = "0xE28F50", Offset = "0xE27F50", VA = "0x180E28F50", Slot = "28")]
|
|
public override bool IsLeapMonth(int year, int month, int era)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <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: 0x06001BDA RID: 7130 RVA: 0x000128B8 File Offset: 0x00010AB8
|
|
[Token(Token = "0x6001BDA")]
|
|
[Address(RVA = "0xE29190", Offset = "0xE28190", VA = "0x180E29190", Slot = "31")]
|
|
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: 0x06001BDB RID: 7131 RVA: 0x000128D0 File Offset: 0x00010AD0
|
|
[Token(Token = "0x6001BDB")]
|
|
[Address(RVA = "0xE29420", Offset = "0xE28420", VA = "0x180E29420", Slot = "33")]
|
|
public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)
|
|
{
|
|
return default(DateTime);
|
|
}
|
|
|
|
// Token: 0x06001BDC RID: 7132 RVA: 0x000128E8 File Offset: 0x00010AE8
|
|
[Token(Token = "0x6001BDC")]
|
|
[Address(RVA = "0xE29670", Offset = "0xE28670", VA = "0x180E29670", Slot = "34")]
|
|
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: 0x1700038B RID: 907
|
|
// (get) Token: 0x06001BDD RID: 7133 RVA: 0x00012900 File Offset: 0x00010B00
|
|
// (set) Token: 0x06001BDE RID: 7134 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700038B")]
|
|
public override int TwoDigitYearMax
|
|
{
|
|
[Token(Token = "0x6001BDD")]
|
|
[Address(RVA = "0xE29AB0", Offset = "0xE28AB0", VA = "0x180E29AB0", Slot = "38")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6001BDE")]
|
|
[Address(RVA = "0xE29B90", Offset = "0xE28B90", VA = "0x180E29B90", Slot = "39")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <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: 0x06001BDF RID: 7135 RVA: 0x00012918 File Offset: 0x00010B18
|
|
[Token(Token = "0x6001BDF")]
|
|
[Address(RVA = "0xE29510", Offset = "0xE28510", VA = "0x180E29510", Slot = "40")]
|
|
public override int ToFourDigitYear(int year)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Represents the current era. This field is constant.</summary>
|
|
// Token: 0x04000F2B RID: 3883
|
|
[Token(Token = "0x4000F2B")]
|
|
public const int ADEra = 1;
|
|
|
|
// Token: 0x04000F2C RID: 3884
|
|
[Token(Token = "0x4000F2C")]
|
|
internal const int DatePartYear = 0;
|
|
|
|
// Token: 0x04000F2D RID: 3885
|
|
[Token(Token = "0x4000F2D")]
|
|
internal const int DatePartDayOfYear = 1;
|
|
|
|
// Token: 0x04000F2E RID: 3886
|
|
[Token(Token = "0x4000F2E")]
|
|
internal const int DatePartMonth = 2;
|
|
|
|
// Token: 0x04000F2F RID: 3887
|
|
[Token(Token = "0x4000F2F")]
|
|
internal const int DatePartDay = 3;
|
|
|
|
// Token: 0x04000F30 RID: 3888
|
|
[Token(Token = "0x4000F30")]
|
|
internal const int MaxYear = 9999;
|
|
|
|
// Token: 0x04000F31 RID: 3889
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000F31")]
|
|
internal GregorianCalendarTypes m_type;
|
|
|
|
// Token: 0x04000F32 RID: 3890
|
|
[Token(Token = "0x4000F32")]
|
|
internal static readonly int[] DaysToMonth365;
|
|
|
|
// Token: 0x04000F33 RID: 3891
|
|
[Token(Token = "0x4000F33")]
|
|
internal static readonly int[] DaysToMonth366;
|
|
|
|
// Token: 0x04000F34 RID: 3892
|
|
[Token(Token = "0x4000F34")]
|
|
private static Calendar s_defaultInstance;
|
|
|
|
// Token: 0x04000F35 RID: 3893
|
|
[Token(Token = "0x4000F35")]
|
|
private const int DEFAULT_TWO_DIGIT_YEAR_MAX = 2029;
|
|
}
|
|
}
|