public enum ChineseDateFormat extends Enum<ChineseDateFormat>
Enum Constant and Description |
---|
GGG
干支纪年 干支纪月 干支纪日
|
GSG
干支纪年 数序纪月 干支纪日
|
GSS
干支纪年 数序纪月 数序纪日
|
GXSS
干支生肖纪年 数序纪月(传统表示) 数序纪日
|
MIX
农历年年首所在的公历年份 干支纪年 数序纪月 数序纪日
|
XSS
生肖纪年 数序纪月 数序纪日
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
获取农历日期输出格式相关描述
|
static ChineseDateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChineseDateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChineseDateFormat GSS
public static final ChineseDateFormat XSS
public static final ChineseDateFormat GXSS
public static final ChineseDateFormat GSG
public static final ChineseDateFormat GGG
public static final ChineseDateFormat MIX
public static ChineseDateFormat[] values()
for (ChineseDateFormat c : ChineseDateFormat.values()) System.out.println(c);
public static ChineseDateFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Copyright © 2025. All rights reserved.