public class DateTimeType extends AbstractType<DateTimeType> implements DataType, Converter<Date>
| 限定符和类型 | 字段和说明 |
|---|---|
static DateTimeType |
GLOBAL |
static String |
ID |
static String |
TIMESTAMP_FORMAT |
| 构造器和说明 |
|---|
DateTimeType() |
| 限定符和类型 | 方法和说明 |
|---|---|
Date |
convert(Object value) |
String |
format(Object value)
对值进行格式化
|
DateTimeType |
format(String format) |
protected java.time.format.DateTimeFormatter |
getFormatter() |
String |
getId()
唯一标识别
|
String |
getName()
名称
|
DateTimeType |
timeZone(java.time.ZoneId zoneId) |
ValidateResult |
validate(Object value)
验证是否合法
|
description, expand, expand, expand, expandsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpands, getTypegetDescription, getExpand, setDescription, setExpands, setNamepublic static final DateTimeType GLOBAL
public DateTimeType timeZone(java.time.ZoneId zoneId)
public DateTimeType format(String format)
protected java.time.format.DateTimeFormatter getFormatter()
public ValidateResult validate(Object value)
DataTypepublic String format(Object value)
FormatSupportformat 在接口中 FormatSupportvalue - 值Copyright © 2019–2022. All rights reserved.