public enum DateTimeFormat extends Enum<DateTimeFormat>
| Enum Constant and Description |
|---|
FORMAT1 |
FORMAT2 |
FORMAT3 |
FORMAT4 |
FORMAT5 |
FORMAT6 |
FORMAT7 |
FORMAT8 |
FORMAT9 |
| Modifier and Type | Method and Description |
|---|---|
static Date |
getDate(String timeStamp)
Returns the Date value of a time stamp
|
String |
getPattern() |
static DateTimeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFormat FORMAT1
public static final DateTimeFormat FORMAT2
public static final DateTimeFormat FORMAT3
public static final DateTimeFormat FORMAT4
public static final DateTimeFormat FORMAT5
public static final DateTimeFormat FORMAT6
public static final DateTimeFormat FORMAT7
public static final DateTimeFormat FORMAT8
public static final DateTimeFormat FORMAT9
public static DateTimeFormat[] values()
for (DateTimeFormat c : DateTimeFormat.values()) System.out.println(c);
public static DateTimeFormat 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 getPattern()
Copyright © 2020. All rights reserved.