Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DateTimeTypeInfo.cs
Go to the documentation of this file.
2
4{
6
8 : base(typeof(DateTime))
9 {
10 }
11
13 {
14 return s_instance ?? (s_instance = new DateTimeTypeInfo());
15 }
16
18 {
20 }
21
22 public override void WriteData(PropertyValue value)
23 {
24 DateTime asDateTime = value.ScalarValue.AsDateTime;
25 long value2 = 0L;
26 if (asDateTime.Ticks > 504911232000000000L)
27 {
28 value2 = asDateTime.ToFileTimeUtc();
29 }
31 }
32}
override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
override void WriteData(PropertyValue value)
static TraceLoggingDataType MakeDataType(TraceLoggingDataType baseType, EventFieldFormat format)
Definition Statics.cs:83
long ToFileTimeUtc()
Definition DateTime.cs:1053