Enum Month

  • Month is an enum that represents the twelve months of the year.

  • To access a specific month, use the syntax Base.Month.[MONTH_NAME], for example, Base.Month.JANUARY.

  • Each month is represented by an Enum property within the Month enum, providing a standardized way to refer to specific months.

Month

An enum representing the months of the year.

To call an enum, you call its parent class, name, and property. For example, Base.Month.JANUARY.

Properties

PropertyTypeDescription
JANUARYEnumJanuary (month 1).
FEBRUARYEnumFebruary (month 2).
MARCHEnumMarch (month 3).
APRILEnumApril (month 4).
MAYEnumMay (month 5).
JUNEEnumJune (month 6).
JULYEnumJuly (month 7).
AUGUSTEnumAugust (month 8).
SEPTEMBEREnumSeptember (month 9).
OCTOBEREnumOctober (month 10).
NOVEMBEREnumNovember (month 11).
DECEMBEREnumDecember (month 12).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年10月31日 UTC.