public class DatePattern extends Object
Constructor and Description |
---|
DatePattern() |
Modifier and Type | Method and Description |
---|---|
static DateTimeFormatter |
createFormatter(String pattern)
创建并为
DateTimeFormatter 赋予默认时区和位置信息,默认值为系统默认值。 |
public static final Pattern REGEX_NORM
yyyy-MM-dd HH:mm:ss.SSSSSS yyyy-MM-dd HH:mm:ss.SSS yyyy-MM-dd HH:mm:ss yyyy-MM-dd HH:mm yyyy-MM-dd
public static final String NORM_YEAR_PATTERN
public static final String NORM_MONTH_PATTERN
public static final FastDateFormat NORM_MONTH_FORMAT
FastDateFormat
:yyyy-MMpublic static final DateTimeFormatter NORM_MONTH_FORMATTER
FastDateFormat
:yyyy-MMpublic static final String SIMPLE_MONTH_PATTERN
public static final FastDateFormat SIMPLE_MONTH_FORMAT
FastDateFormat
:yyyyMMpublic static final DateTimeFormatter SIMPLE_MONTH_FORMATTER
FastDateFormat
:yyyyMMpublic static final String NORM_DATE_PATTERN
public static final FastDateFormat NORM_DATE_FORMAT
FastDateFormat
:yyyy-MM-ddpublic static final DateTimeFormatter NORM_DATE_FORMATTER
FastDateFormat
:yyyy-MM-ddpublic static final String NORM_TIME_PATTERN
public static final FastDateFormat NORM_TIME_FORMAT
FastDateFormat
:HH:mm:sspublic static final DateTimeFormatter NORM_TIME_FORMATTER
FastDateFormat
:HH:mm:sspublic static final String NORM_DATETIME_MINUTE_PATTERN
public static final FastDateFormat NORM_DATETIME_MINUTE_FORMAT
FastDateFormat
:yyyy-MM-dd HH:mmpublic static final DateTimeFormatter NORM_DATETIME_MINUTE_FORMATTER
FastDateFormat
:yyyy-MM-dd HH:mmpublic static final String NORM_DATETIME_PATTERN
public static final FastDateFormat NORM_DATETIME_FORMAT
FastDateFormat
:yyyy-MM-dd HH:mm:sspublic static final DateTimeFormatter NORM_DATETIME_FORMATTER
FastDateFormat
:yyyy-MM-dd HH:mm:sspublic static final String NORM_DATETIME_MS_PATTERN
public static final FastDateFormat NORM_DATETIME_MS_FORMAT
FastDateFormat
:yyyy-MM-dd HH:mm:ss.SSSpublic static final DateTimeFormatter NORM_DATETIME_MS_FORMATTER
FastDateFormat
:yyyy-MM-dd HH:mm:ss.SSSpublic static final String ISO8601_PATTERN
public static final FastDateFormat ISO8601_FORMAT
FastDateFormat
:yyyy-MM-dd HH:mm:ss,SSSpublic static final DateTimeFormatter ISO8601_FORMATTER
FastDateFormat
:yyyy-MM-dd HH:mm:ss,SSSpublic static final String CHINESE_DATE_PATTERN
public static final FastDateFormat CHINESE_DATE_FORMAT
FastDateFormat
:yyyy年MM月dd日public static final DateTimeFormatter CHINESE_DATE_FORMATTER
FastDateFormat
:yyyy年MM月dd日public static final String CHINESE_DATE_TIME_PATTERN
public static final FastDateFormat CHINESE_DATE_TIME_FORMAT
FastDateFormat
:yyyy年MM月dd日HH时mm分ss秒public static final DateTimeFormatter CHINESE_DATE_TIME_FORMATTER
FastDateFormat
:yyyy年MM月dd日HH时mm分ss秒public static final String PURE_DATE_PATTERN
public static final FastDateFormat PURE_DATE_FORMAT
FastDateFormat
:yyyyMMddpublic static final DateTimeFormatter PURE_DATE_FORMATTER
FastDateFormat
:yyyyMMddpublic static final String PURE_TIME_PATTERN
public static final FastDateFormat PURE_TIME_FORMAT
FastDateFormat
:HHmmsspublic static final DateTimeFormatter PURE_TIME_FORMATTER
FastDateFormat
:HHmmsspublic static final String PURE_DATETIME_PATTERN
public static final FastDateFormat PURE_DATETIME_FORMAT
FastDateFormat
:yyyyMMddHHmmsspublic static final DateTimeFormatter PURE_DATETIME_FORMATTER
FastDateFormat
:yyyyMMddHHmmsspublic static final String PURE_DATETIME_MS_PATTERN
public static final FastDateFormat PURE_DATETIME_MS_FORMAT
FastDateFormat
:yyyyMMddHHmmssSSSpublic static final DateTimeFormatter PURE_DATETIME_MS_FORMATTER
FastDateFormat
:yyyyMMddHHmmssSSSpublic static final String HTTP_DATETIME_PATTERN
public static final FastDateFormat HTTP_DATETIME_FORMAT
FastDateFormat
:EEE, dd MMM yyyy HH:mm:ss zpublic static final FastDateFormat HTTP_DATETIME_FORMAT_Z
FastDateFormat
:EEE, dd MMM yyyy HH:mm:ss zpublic static final String JDK_DATETIME_PATTERN
public static final FastDateFormat JDK_DATETIME_FORMAT
FastDateFormat
:EEE MMM dd HH:mm:ss zzz yyyypublic static final String UTC_SIMPLE_PATTERN
public static final FastDateFormat UTC_SIMPLE_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:sspublic static final String UTC_SIMPLE_MS_PATTERN
public static final FastDateFormat UTC_SIMPLE_MS_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ss.SSSpublic static final String UTC_PATTERN
public static final FastDateFormat UTC_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ss'Z'public static final String UTC_WITH_ZONE_OFFSET_PATTERN
public static final FastDateFormat UTC_WITH_ZONE_OFFSET_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ssZpublic static final String UTC_WITH_XXX_OFFSET_PATTERN
public static final FastDateFormat UTC_WITH_XXX_OFFSET_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ssXXXpublic static final String UTC_MS_PATTERN
public static final FastDateFormat UTC_MS_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'public static final String UTC_MS_WITH_ZONE_OFFSET_PATTERN
public static final FastDateFormat UTC_MS_WITH_ZONE_OFFSET_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ssZpublic static final String UTC_MS_WITH_XXX_OFFSET_PATTERN
public static final FastDateFormat UTC_MS_WITH_XXX_OFFSET_FORMAT
FastDateFormat
:yyyy-MM-dd'T'HH:mm:ss.SSSXXXpublic static DateTimeFormatter createFormatter(String pattern)
DateTimeFormatter
赋予默认时区和位置信息,默认值为系统默认值。pattern
- 日期格式DateTimeFormatter
Copyright © 2024. All rights reserved.