1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5
6#ifndef _COMDATETIME_H_
7#define _COMDATETIME_H_
8
9#include <oleauto.h>
10#include "fcall.h"
11
12#include <pshpack1.h>
13
14class COMDateTime {
15 static const INT64 TicksPerMillisecond;
16 static const INT64 TicksPerSecond;
17 static const INT64 TicksPerMinute;
18 static const INT64 TicksPerHour;
19 static const INT64 TicksPerDay;
20
21 static const INT64 MillisPerSecond;
22 static const INT64 MillisPerDay;
23
24 static const int DaysPer4Years;
25 static const int DaysPer100Years;
26 static const int DaysPer400Years;
27 // Number of days from 1/1/0001 to 1/1/10000
28 static const int DaysTo10000;
29
30 static const int DaysTo1899;
31
32 static const INT64 DoubleDateOffset;
33 static const INT64 OADateMinAsTicks; // in ticks
34 static const double OADateMinAsDouble;
35 static const double OADateMaxAsDouble;
36
37 static const INT64 MaxTicks;
38 static const INT64 MaxMillis;
39
40public:
41
42 // Native util functions for other classes.
43 static INT64 DoubleDateToTicks(const double d); // From OleAut Date
44 static double TicksToDoubleDate(const INT64 ticks);
45};
46
47#include <poppack.h>
48
49#endif // _COMDATETIME_H_
50