Language

DateTimePatternField Enum

Definition

Identifies a date-time field for pattern generation and field-name lookup.

public enum DateTimePatternField
type DateTimePatternField = 
Inheritance
DateTimePatternField

Fields

Name Value Description
Era 0

Identifies the era field, represented canonically by G.

Year 1

Identifies the year field, represented canonically by y.

Quarter 2

Identifies the quarter field, represented canonically by Q.

Month 3

Identifies the month field, represented canonically by M.

WeekOfYear 4

Identifies the week-in-year field, represented canonically by w.

WeekOfMonth 5

Identifies the week-in-month field, represented canonically by W.

Weekday 6

Identifies the weekday field, represented canonically by E.

Day 7

Identifies the day field, represented canonically by d.

DayOfYear 8

Identifies the day-of-year field, represented canonically by D.

DayOfWeekInMonth 9

Identifies the weekday-in-month field, represented canonically by F.

Dayperiod 10

Identifies the day-period field, represented canonically by a.

Hour 11

Identifies the hour field, represented canonically by H.

Minute 12

Identifies the minute field, represented canonically by m.

Second 13

Identifies the second field, represented canonically by s.

FractionalSecond 14

Identifies the fractional-second field, represented canonically by S.

Zone 15

Identifies the time-zone field, represented canonically by v.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to