The constituent parts of a data time object, in Gregorian calendar.
Pay particular attention to the index for each part. Both MONTH and DAY are 1-based; HOURS and below are 0-based.
Type | Name | Value |
---|---|---|
constant | YEAR | 0 |
constant | MONTH | 1 |
constant | DAY | 2 |
constant | HOUR | 3 |
constant | MINUTE | 4 |
constant | SECOND | 5 |
constant | MILLISECOND | 6 |
public const DateTimePart YEAR = 0
public const DateTimePart MONTH = 1
public const DateTimePart DAY = 2
public const DateTimePart HOUR = 3
public const DateTimePart MINUTE = 4
public const DateTimePart SECOND = 5
public const DateTimePart MILLISECOND = 6
Millisecond in a second (0-999)