googlearchive / quiver_time

Utilities for working with time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPRECATED

See https://pub.dev/packages/quiver instead!

Quiver Time

Utilities for working with time.

Build Status Coverage Status

Documentation

API Docs

Clock provides points in time relative to the current point in time, for example: now, 2 days ago, 4 weeks from now, etc. For tesability, use Clock rather than other ways of accessing time, like new DateTime(), so that you can use a fake time function in your tests to control time.

aMicrosecond, aMillisecond, aSecond, aMinute, anHour, aDay, and aWeek are unit duration constants to allow writing for example:

  • aDay vs. const Duration(days: 1)
  • aSecond * 30 vs. const Duration(seconds: 30)

About

Utilities for working with time

License:Apache License 2.0


Languages

Language:Dart 93.9%Language:Shell 6.1%