time.dart

⏰ Type-safe DateTime and Duration calculations, powered by extensions.

MIT License

Stars
496
Committers
14

Bot releases are hidden (Show)

time.dart - v2.1.4 Latest Release

Published by jogboms 9 months ago

What's Changed

Full Changelog: https://github.com/jogboms/time.dart/compare/v2.1.3...v2.1.4

time.dart - v2.1.3

Published by jogboms about 2 years ago

What's Changed

Full Changelog: https://github.com/jogboms/time.dart/compare/v2.1.2...v2.1.3

time.dart - v2.1.2

Published by jogboms about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jogboms/time.dart/compare/v2.1.1...v2.1.2

time.dart - v2.1.1

Published by jogboms over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jogboms/time.dart/compare/v2.1.0...v2.1.1

time.dart - v2.1.0

Published by jogboms almost 3 years ago

  • Introduce package:clock dependency for more predictable testing
time.dart - v2.0.1

Published by jogboms almost 3 years ago

  • Implement utc support for copyWith operation
time.dart - v2.0.0

Published by jogboms over 3 years ago

  • Migrate to null-safety
time.dart - v1.4.1

Published by jogboms over 3 years ago

  • Introduce isAtSameYearAs extension to DateTime
  • Introduce isAtSameMonthAs extension to DateTime
  • Introduce isAtSameDayAs extension to DateTime
  • Introduce isAtSameHourAs extension to DateTime
  • Introduce isAtSameMinuteAs extension to DateTime
  • Introduce isAtSameMillisecondAs extension to DateTime
  • Introduce isAtSameMicrosecondAs extension to DateTime
time.dart - Null safety?!

Published by jogboms almost 4 years ago

  • Introduce null safety
time.dart - Present, Past and Future

Published by jogboms almost 4 years ago

  • Introduce isToday extension to Duration
  • Introduce isTomorrow extension to DateTime
  • Introduce wasYesterday extension to DateTime
time.dart - Delayed goodness

Published by jogboms over 4 years ago

  • Introduce delay extension to Duration
  • Introduce copyWith extension to DateTime
time.dart - A walk through Time

Published by jogboms almost 5 years ago

  • Iterate through a DateTime range:
final DateTime start = DateTime(2019, 12, 2);
final DateTime end = start + 1.weeks;
final DateTime tuesday = start.to(end).firstWhere((date) => date.weekday == DateTime.tuesday);
time.dart - Undo the cracks

Published by jogboms almost 5 years ago

  • Undo breaking change
time.dart - All in for the num

Published by jogboms almost 5 years ago

time.dart - Just in time.

Published by jogboms about 5 years ago