Classes

Clock
Provides points in time relative to the current point in time, for example: now, 2 days ago, 4 weeks from now, etc. [...]

Constants

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

Functions

clampDayOfMonth({int year, int month, int day }) int
Takes a date that may be outside the allowed range of dates for a given month in a given year and returns the closest date that is within the allowed range. [...]
daysInMonth(int year, int month) int
Returns the number of days in the specified month. [...]
isLeapYear(int year) bool
Returns true if year is a leap year. [...]
systemTime() DateTime
Return current system time.

Typedefs

TimeFunction() DateTime
Returns current time.