quiver.time library

Classes

Clock
提供相对于当前时间点的时间点,例如:现在,2天前,现在4周后,等等. [...]

Constants

aDay → const Duration
const Duration(days: 1)
aMicrosecond → const Duration
const Duration(microseconds: 1)
aMillisecond → const Duration
const Duration(milliseconds: 1)
aMinute → const Duration
const Duration(minutes: 1)
anHour → const Duration
const Duration(hours: 1)
aSecond → const Duration
const Duration(seconds: 1)
aWeek → const Duration
const Duration(days: 7)

Functions

clampDayOfMonth({int year, int month, int day}) int
取得date ,该date可能超出给定year给定month的允许日期范围,并返回允许范围内的最接近日期. [...]
daysInMonth(int year, int month) int
返回指定月份中的天数. [...]
isLeapYear(int year) bool
如果year是a year则返回true. [...]
systemTime() DateTime
返回当前系统时间.

Typedefs

TimeFunction() DateTime
返回当前时间.