Elin Modding Docs Doc
Loading...
Searching...
No Matches
SerializableDateTime.cs
1using System;
2using UnityEngine;
3
4// Token: 0x02000133 RID: 307
5[Serializable]
6public class SerializableDateTime : IComparable<SerializableDateTime>
7{
8 // Token: 0x170001C9 RID: 457
9 // (get) Token: 0x06000836 RID: 2102 RVA: 0x00036360 File Offset: 0x00034560
10 public DateTime DateTime
11 {
12 get
13 {
14 if (!this.initialized)
15 {
16 this.m_dateTime = new DateTime(this.m_ticks);
17 this.initialized = true;
18 }
19 return this.m_dateTime;
20 }
21 }
22
23 // Token: 0x06000837 RID: 2103 RVA: 0x00036388 File Offset: 0x00034588
24 public SerializableDateTime(DateTime dateTime)
25 {
26 this.m_ticks = dateTime.Ticks;
27 this.m_dateTime = dateTime;
28 this.initialized = true;
29 }
30
31 // Token: 0x06000838 RID: 2104 RVA: 0x000363AB File Offset: 0x000345AB
32 public int CompareTo(SerializableDateTime other)
33 {
34 if (other == null)
35 {
36 return 1;
37 }
38 return this.m_ticks.CompareTo(other.m_ticks);
39 }
40
41 // Token: 0x04000897 RID: 2199
42 [SerializeField]
43 private long m_ticks;
44
45 // Token: 0x04000898 RID: 2200
46 private bool initialized;
47
48 // Token: 0x04000899 RID: 2201
49 public DateTime m_dateTime;
50}