-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDateTimeRangeGranularity.cs
More file actions
66 lines (56 loc) · 2.63 KB
/
DateTimeRangeGranularity.cs
File metadata and controls
66 lines (56 loc) · 2.63 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
namespace RapidField.SolidInstruments.Core
{
/// <summary>
/// Specifies the granularity of a <see cref="DateTimeRange" />.
/// </summary>
public enum DateTimeRangeGranularity : Int32
{
/// <summary>
/// The accuracy of the start and end points of the range is not specified.
/// </summary>
Unspecified = 0,
/// <summary>
/// The start and end points of the range are exactly accurate and are not quantized.
/// </summary>
Exact = 1,
/// <summary>
/// The millisecond values expressed by the start and end points of the range are accurate and the tick counts are quantized
/// to the midpoints of the millisecond.
/// </summary>
AccurateToTheMillisecond = 2,
/// <summary>
/// The second values expressed by the start and end points of the range are accurate and the millisecond values are
/// quantized to the midpoints of the second.
/// </summary>
AccurateToTheSecond = 3,
/// <summary>
/// The minute values expressed by the start and end points of the range are accurate and the second values are quantized to
/// the midpoints of the minute.
/// </summary>
AccurateToTheMinute = 4,
/// <summary>
/// The hour values expressed by the start and end points of the range are accurate and the minute values are quantized to
/// the midpoints of the hour.
/// </summary>
AccurateToTheHour = 5,
/// <summary>
/// The day values expressed by the start and end points of the range are accurate and the hour values are quantized to the
/// midpoints of the day.
/// </summary>
AccurateToTheDay = 6,
/// <summary>
/// The month values expressed by the start and end points of the range are accurate and the day values are quantized to the
/// midpoints of the month.
/// </summary>
AccurateToTheMonth = 7,
/// <summary>
/// The year values expressed by the start and end points of the range are accurate and the day values are quantized to the
/// midpoints of the year.
/// </summary>
AccurateToTheYear = 8
}
}