DateFormats class

一些常用格式参照。可以自定义格式, 例如:'yyyy/MM/dd HH:mm:ss','yyyy/M/d HH:mm:ss'。 格式要求 year -> yyyy/yy month -> MM/M day -> dd/d hour -> HH/H minute -> mm/m second -> ss/s

Constructors

DateFormats()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

full String
通用格式
getter/setter pair
fullZh String
包含中文格式
getter/setter pair
hhMm String
getter/setter pair
hhMmSs String
getter/setter pair
hhMmSsZh String
getter/setter pair
hhMmZh String
getter/setter pair
mMDd String
getter/setter pair
mMDdHhMm String
getter/setter pair
mMDdHhMmZh String
getter/setter pair
mMDdZh String
getter/setter pair
yyyyMM String
getter/setter pair
yyyyMMDd String
getter/setter pair
yyyyMMDdHhMm String
年-月-日-时-分 yyyy-MM-dd HH:mm
getter/setter pair
yyyyMMDdHhMmZh String
getter/setter pair
yyyyMMDdZh String
getter/setter pair
yyyyMMZh String
getter/setter pair