// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #ifndef _COMDATETIME_H_ #define _COMDATETIME_H_ #include #include "fcall.h" #include class COMDateTime { static const INT64 TicksPerMillisecond; static const INT64 TicksPerSecond; static const INT64 TicksPerMinute; static const INT64 TicksPerHour; static const INT64 TicksPerDay; static const INT64 MillisPerSecond; static const INT64 MillisPerDay; static const int DaysPer4Years; static const int DaysPer100Years; static const int DaysPer400Years; // Number of days from 1/1/0001 to 1/1/10000 static const int DaysTo10000; static const int DaysTo1899; static const INT64 DoubleDateOffset; static const INT64 OADateMinAsTicks; // in ticks static const double OADateMinAsDouble; static const double OADateMaxAsDouble; static const INT64 MaxTicks; static const INT64 MaxMillis; public: // Native util functions for other classes. static INT64 DoubleDateToTicks(const double d); // From OleAut Date static double TicksToDoubleDate(const INT64 ticks); }; #include #endif // _COMDATETIME_H_