using System; namespace System.Globalization { // Token: 0x0200016B RID: 363 internal class CCFixed { // Token: 0x060011C0 RID: 4544 RVA: 0x00046210 File Offset: 0x00044410 public static DateTime ToDateTime(int date) { long num = (long)(date - 1) * 864000000000L; return new DateTime(num); } // Token: 0x060011C1 RID: 4545 RVA: 0x00046234 File Offset: 0x00044434 public static DateTime ToDateTime(int date, int hour, int minute, int second, double milliseconds) { return CCFixed.ToDateTime(date).AddHours((double)hour).AddMinutes((double)minute) .AddSeconds((double)second) .AddMilliseconds(milliseconds); } // Token: 0x060011C2 RID: 4546 RVA: 0x00046270 File Offset: 0x00044470 public static int FromDateTime(DateTime time) { return 1 + (int)(time.Ticks / 864000000000L); } // Token: 0x060011C3 RID: 4547 RVA: 0x00046288 File Offset: 0x00044488 public static DayOfWeek day_of_week(int date) { return (DayOfWeek)CCMath.mod(date, 7); } // Token: 0x060011C4 RID: 4548 RVA: 0x00046294 File Offset: 0x00044494 public static int kday_on_or_before(int date, int k) { return date - (int)CCFixed.day_of_week(date - k); } // Token: 0x060011C5 RID: 4549 RVA: 0x000462A0 File Offset: 0x000444A0 public static int kday_on_or_after(int date, int k) { return CCFixed.kday_on_or_before(date + 6, k); } // Token: 0x060011C6 RID: 4550 RVA: 0x000462AC File Offset: 0x000444AC public static int kd_nearest(int date, int k) { return CCFixed.kday_on_or_before(date + 3, k); } // Token: 0x060011C7 RID: 4551 RVA: 0x000462B8 File Offset: 0x000444B8 public static int kday_after(int date, int k) { return CCFixed.kday_on_or_before(date + 7, k); } // Token: 0x060011C8 RID: 4552 RVA: 0x000462C4 File Offset: 0x000444C4 public static int kday_before(int date, int k) { return CCFixed.kday_on_or_before(date - 1, k); } } }