DateUnit enum
日期时间单位,每个单位都是以毫秒为基数
Values
- ms → const DateUnit
-
一毫秒
const DateUnit(1)
- second → const DateUnit
-
一秒的毫秒数
const DateUnit(1000)
- minute → const DateUnit
-
一分钟的毫秒数
const DateUnit(1000 * 60)
- hour → const DateUnit
-
一小时的毫秒数
const DateUnit(1000 * 60 * 60)
- day → const DateUnit
-
一天的毫秒数
const DateUnit(1000 * 60 * 60 * 24)
- week → const DateUnit
-
一周的毫秒数
const DateUnit(1000 * 60 * 60 * 24 * 7)
Properties
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