public class DateTimeStringUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ISO_DATETIME_FORMAT
The SimpleDateFormat string for ISO timestamps,
"yyyy-MM-dd'T'HH:mm:ss'Z'".
|
static String |
ISO_DATETIME_FRACTIONAL_SECOND_FORMAT
The SimpleDateFormat string for ISO timestamps with precisions, "yyyy-MM-dd'T'HH:mm:ss
.SSS'Z'"
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleDateFormat |
getDateFormatter(String format)
Create a SimpleDateFormat with format string with default time zone UTC.
|
static SimpleDateFormat |
getDateFormatter(String format,
TimeZone timeZone)
Create a SimpleDateFormat with format string and time zone.
|
public static final String ISO_DATETIME_FORMAT
public static final String ISO_DATETIME_FRACTIONAL_SECOND_FORMAT
public static SimpleDateFormat getDateFormatter(String format)
public static SimpleDateFormat getDateFormatter(String format, TimeZone timeZone)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.