Files
2026-06-04 11:42:34 +02:00

151 lines
3.5 KiB
C#

using System;
namespace System.Globalization
{
// Token: 0x02000174 RID: 372
internal class CCEastAsianLunisolarCalendar
{
// Token: 0x06001207 RID: 4615 RVA: 0x00046D7C File Offset: 0x00044F7C
public static int fixed_from_dmy(int day, int month, int year)
{
throw new Exception("fixed_from_dmy");
}
// Token: 0x06001208 RID: 4616 RVA: 0x00046D88 File Offset: 0x00044F88
public static int year_from_fixed(int date)
{
throw new Exception("year_from_fixed");
}
// Token: 0x06001209 RID: 4617 RVA: 0x00046D94 File Offset: 0x00044F94
public static void my_from_fixed(out int month, out int year, int date)
{
throw new Exception("my_from_fixed");
}
// Token: 0x0600120A RID: 4618 RVA: 0x00046DA0 File Offset: 0x00044FA0
public static void dmy_from_fixed(out int day, out int month, out int year, int date)
{
throw new Exception("dmy_from_fixed");
}
// Token: 0x0600120B RID: 4619 RVA: 0x00046DAC File Offset: 0x00044FAC
public static DateTime AddMonths(DateTime date, int months)
{
throw new Exception("AddMonths");
}
// Token: 0x0600120C RID: 4620 RVA: 0x00046DB8 File Offset: 0x00044FB8
public static DateTime AddYears(DateTime date, int years)
{
throw new Exception("AddYears");
}
// Token: 0x0600120D RID: 4621 RVA: 0x00046DC4 File Offset: 0x00044FC4
public static int GetDayOfMonth(DateTime date)
{
throw new Exception("GetDayOfMonth");
}
// Token: 0x0600120E RID: 4622 RVA: 0x00046DD0 File Offset: 0x00044FD0
public static int GetDayOfYear(DateTime date)
{
throw new Exception("GetDayOfYear");
}
// Token: 0x0600120F RID: 4623 RVA: 0x00046DDC File Offset: 0x00044FDC
public static int GetDaysInMonth(int gyear, int month)
{
throw new Exception("GetDaysInMonth");
}
// Token: 0x06001210 RID: 4624 RVA: 0x00046DE8 File Offset: 0x00044FE8
public static int GetDaysInYear(int year)
{
throw new Exception("GetDaysInYear");
}
// Token: 0x06001211 RID: 4625 RVA: 0x00046DF4 File Offset: 0x00044FF4
public static int GetMonth(DateTime date)
{
throw new Exception("GetMonth");
}
// Token: 0x06001212 RID: 4626 RVA: 0x00046E00 File Offset: 0x00045000
public static bool IsLeapMonth(int gyear, int month)
{
int num = gyear % 19;
bool flag = false;
bool flag2 = false;
double num2 = 0.0;
for (int i = 0; i < num; i++)
{
int num3 = 0;
for (int j = 1; j <= month; j++)
{
if (flag2)
{
num3 += 30;
flag2 = false;
if (i == num && j == month)
{
return true;
}
}
else
{
num3 += ((!flag) ? 29 : 30);
flag = !flag;
num2 += 30.44;
if (num2 - (double)num3 > 29.0)
{
flag2 = true;
}
}
}
}
return false;
}
// Token: 0x06001213 RID: 4627 RVA: 0x00046EB0 File Offset: 0x000450B0
public static bool IsLeapYear(int gyear)
{
int num = gyear % 19;
int num2 = num;
switch (num2)
{
case 6:
case 9:
case 11:
break;
default:
switch (num2)
{
case 0:
case 3:
break;
default:
switch (num2)
{
case 14:
case 17:
return true;
}
return false;
}
break;
}
return true;
}
// Token: 0x06001214 RID: 4628 RVA: 0x00046F1C File Offset: 0x0004511C
public static DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)
{
throw new Exception("ToDateTime");
}
// Token: 0x040004A9 RID: 1193
private const int initial_epact = 29;
}
}