public enum DateTimeType extends java.lang.Enum<DateTimeType>
Enumeration contains some of the UNEC 2379 codes and formats. This Enumeration does not contain periods formats.
| Enum Constant and Description |
|---|
_10
The code " yyyyMMdd'T'HHmm".
|
_101
The code "yyMMdd".
|
_102
The code "yyyyMMdd".
|
_103
The code "yywwu".
|
_105
The code "yyDDD".
|
_106
The code "MMdd".
|
_107
The code "DDD".
|
_108
The code "ww".
|
_109
The code "MM".
|
_110
The code "dd".
|
_201
The code "yyMMddHHmm".
|
_202
The code "yyMMddHHmmss".
|
_203
The code "yyyyMMddHHmm".
|
_204
The code "yyyyMMddHHmmss".
|
_205
The code "yyyyMMddHHmmXX".
|
_206
The code "yyMMddHHmmXX".
|
_207
The code "yyMMddHHmmssXX".
|
_208
The code "yyyyMMddHHmmssXX".
|
_209
The code "HHmmssXX".
|
_3
The code "MMddyy".
|
_301
The code "yyMMddHHmmXX".
|
_302
The code "yyMMddHHmmssXX".
|
_303
The code "yyyyMMddHHmmXX".
|
_304
The code "yyyyMMddHHmmssXX".
|
_305
The code "MMddHHmm".
|
_306
The code "ddHHmm".
|
_4
The code "ddMMyyyy".
|
_401
The code "HHmm".
|
_402
The code "HHmmss".
|
_404
The code "HHmmssXX".
|
_5
The code "ddMMyyyyHHmm".
|
_601
The code "yy".
|
_602
The code "yyyy".
|
_609
The code "yyMM".
|
_610
The code "yyyyMM".
|
_615
The code "yyww".
|
_616
The code "yyyyww".
|
_7
The code "yyyyMMw".
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.util.Date date)
|
java.lang.String |
format(java.lang.Long date)
|
static DateTimeType |
getByCode(java.lang.String code)
|
java.lang.String |
getCode()
|
java.lang.String |
getPattern()
|
static boolean |
isKnown(java.lang.String code)
|
java.util.Date |
parse(java.lang.String value)
|
java.lang.String |
toString()
|
static DateTimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeType _10
public static final DateTimeType _101
public static final DateTimeType _102
public static final DateTimeType _103
public static final DateTimeType _105
public static final DateTimeType _106
public static final DateTimeType _107
public static final DateTimeType _108
public static final DateTimeType _109
public static final DateTimeType _110
public static final DateTimeType _201
public static final DateTimeType _202
public static final DateTimeType _203
public static final DateTimeType _204
public static final DateTimeType _205
public static final DateTimeType _206
public static final DateTimeType _207
public static final DateTimeType _208
public static final DateTimeType _209
public static final DateTimeType _3
public static final DateTimeType _301
public static final DateTimeType _302
public static final DateTimeType _303
public static final DateTimeType _304
public static final DateTimeType _305
public static final DateTimeType _306
public static final DateTimeType _4
public static final DateTimeType _401
public static final DateTimeType _402
public static final DateTimeType _404
public static final DateTimeType _5
public static final DateTimeType _601
public static final DateTimeType _602
public static final DateTimeType _609
public static final DateTimeType _610
public static final DateTimeType _615
public static final DateTimeType _616
public static final DateTimeType _7
public java.lang.String format(java.util.Date date)
Format the given date to a string.
date - the datepublic java.lang.String format(java.lang.Long date)
Format the given date to string.
date - the datepublic static DateTimeType getByCode(java.lang.String code)
Return a DateTimeType by the given code string.
code - the date codepublic java.lang.String getCode()
Gets the code.
public java.lang.String getPattern()
Gets the pattern.
public static boolean isKnown(java.lang.String code)
Answers if the provided UNEC 2379 format code is known.
code - the format codepublic java.util.Date parse(java.lang.String value)
Parses the given value to a date object.
value - the date valuepublic java.lang.String toString()
Dumps the code, pattern and name as a string.
toString in class java.lang.Enum<DateTimeType>public static DateTimeType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static DateTimeType[] values()
for (DateTimeType c : DateTimeType.values()) System.out.println(c);
Copyright © 2014 konik.io. All Rights Reserved.