in_date_utils library

Classes

Clock
A provider for the "current time" and points relative to the current time.
DateTimeUtils
Utils to work with DateTime.

Properties

clock Clock
The default implementation of clock for the current Zone.
no setter
now DateTime
Returns the current time as reported by clock.
no setter

Functions

getStopwatch() Stopwatch
Returns a stopwatch that uses the current time as reported by clock.
systemTime() DateTime
Returns the current system time.
withClock<T>(Clock clock, T callback(), {bool isFinal = false}) → T
Runs callback with the given value for the top-level clock field.

Typedefs

DTU = DateTimeUtils
Shortcut for DateTimeUtils.
TimeFunction = DateTime Function()
Returns current time.