menu
quiver package
documentation
time.dart
time.dart
dark_mode
light_mode
time
library
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
→ const
Duration
aMicrosecond
→ const
Duration
aMillisecond
→ const
Duration
aMinute
→ const
Duration
anHour
→ const
Duration
aSecond
→ const
Duration
aWeek
→ const
Duration
Functions
clampDayOfMonth
(
{
required
int
year
,
required
int
month
,
required
int
day
})
→
int
Takes a
day
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
Function
()
Returns current time.
quiver package
documentation
time.dart
quiver
package
Libraries
async
cache
check
collection
core
iterables
pattern
strings
testing/async
testing/equality
testing/src/async/fake_async
testing/src/equality/equality
testing/src/time/time
testing/time
time
quiver.time library