blob: fef4fefbd318ec3021ca4d12ade2a4ad0fe81854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#ifndef _COMDATETIME_H_
#define _COMDATETIME_H_
#include <oleauto.h>
#include "fcall.h"
#include <pshpack1.h>
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 <poppack.h>
#endif // _COMDATETIME_H_
|