-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDateTimePart.cs
More file actions
36 lines (35 loc) · 1.29 KB
/
DateTimePart.cs
File metadata and controls
36 lines (35 loc) · 1.29 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
namespace BytecodeApi;
/// <summary>
/// Specifies the subset of a <see cref="System.DateTime" /> representation.
/// </summary>
public enum DateTimePart
{
/// <summary>
/// The full <see cref="System.DateTime" /> is used.
/// </summary>
Full,
/// <summary>
/// The date and time including seconds of the <see cref="System.DateTime" /> object is used.
/// </summary>
DateTimeWithSeconds,
/// <summary>
/// The date and time excluding seconds of the <see cref="System.DateTime" /> object is used.
/// </summary>
DateTime,
/// <summary>
/// The date part excluding time information of the <see cref="System.DateTime" /> object is used. This is equal to the <see cref="DateTime.Date" /> property.
/// </summary>
Date,
/// <summary>
/// The year and month of the <see cref="System.DateTime" /> object is used. <see cref="DateTime.Day" /> is set to 1.
/// </summary>
YearMonth,
/// <summary>
/// The year and month of the <see cref="System.DateTime" /> object is used. <see cref="System.DateTime.Month" /> is rounded down to the current quarter and <see cref="System.DateTime.Day" /> is set to 1.
/// </summary>
YearQuarter,
/// <summary>
/// The year is used. <see cref="DateTime.Month" /> and <see cref="DateTime.Day" /> are both set to 1.
/// </summary>
Year
}