public enum DateFormatType extends Enum<DateFormatType>
| Enum Constant and Description |
|---|
DD |
DD_UNSIGNED |
DD2 |
DD3 |
MI |
MI_UNSIGNED |
MI2 |
MM |
MM_UNSIGNED |
MM2 |
MM3 |
SS |
SS_UNSIGNED |
SS2 |
SSS |
SSS_UNSIGNED |
SSS2 |
TIME_MM |
TIME_SS |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat()
获取时间格式
|
static DateFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormatType MM
public static final DateFormatType DD
public static final DateFormatType MI
public static final DateFormatType SS
public static final DateFormatType SSS
public static final DateFormatType MM2
public static final DateFormatType DD2
public static final DateFormatType MI2
public static final DateFormatType SS2
public static final DateFormatType SSS2
public static final DateFormatType MM3
public static final DateFormatType DD3
public static final DateFormatType MM_UNSIGNED
public static final DateFormatType DD_UNSIGNED
public static final DateFormatType MI_UNSIGNED
public static final DateFormatType SS_UNSIGNED
public static final DateFormatType SSS_UNSIGNED
public static final DateFormatType TIME_MM
public static final DateFormatType TIME_SS
public static DateFormatType[] values()
for (DateFormatType c : DateFormatType.values()) System.out.println(c);
public static DateFormatType 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 getFormat()
Copyright © 2021–2022 EasyJ????. All rights reserved.