次の方法で共有


CalendarField Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum CalendarField
type CalendarField = 
Inheritance
CalendarField

Fields

Name Value Description
Era 0

Field number for get and setindicating the era, e.g., AD or BC in the Julian calendar.

Year 1

Field number for get and setindicating the year.

Month 2

Field number for get and setindicating the month.

WeekOfYear 3

Field number for get and setindicating the week number within the current year.

WeekOfMonth 4

Field number for get and setindicating the week number within the current month.

Date 5

Field number for get and setindicating the day of the month.

DayOfMonth 5

Field number for get and setindicating the day of the month.

DayOfYear 6

Field number for get and setindicating the day number within the current year.

DayOfWeek 7

Field number for get and setindicating the day of the week.

DayOfWeekInMonth 8

Field number for get and setindicating the ordinal number of the day of the week within the current month.

AmPm 9

Field number for get and set indicating whether the HOURis before or after noon.

Hour 10

Field number for get and setindicating the hour of the morning or afternoon.

HourOfDay 11

Field number for get and setindicating the hour of the day.

Minute 12

Field number for get and setindicating the minute within the hour.

Second 13

Field number for get and setindicating the second within the minute.

Millisecond 14

Field number for get and setindicating the millisecond within the second.

ZoneOffset 15

Field number for get and setindicating the raw offset from GMT in milliseconds.

DstOffset 16

Field number for get and setindicating the daylight savings offset in milliseconds.

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