Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DateMarshaler.cs
Go to the documentation of this file.
1namespace System.StubHelpers;
2
3internal static class DateMarshaler
4{
5 internal static double ConvertToNative(DateTime managedDate)
6 {
7 return managedDate.ToOADate();
8 }
9
10 internal static long ConvertToManaged(double nativeDate)
11 {
12 return DateTime.DoubleDateToTicks(nativeDate);
13 }
14}
static long ConvertToManaged(double nativeDate)
static double ConvertToNative(DateTime managedDate)
double ToOADate()
Definition DateTime.cs:1043
static long DoubleDateToTicks(double value)
Definition DateTime.cs:633