PackageTrack
Sign in Get early access

time_machine

Date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.

0.9.17 21K downloads/mo #2133 most downloaded on pub.dev Dana-Ferguson/time_machine

What this package is like to depend on

Last release 4 years ago

no release in 18 months

Ships unpredictably

gaps range from 1 weeks to 1.4 years

Most releases are documented

notes for 34 of 40 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

40 releases · first in 2018

0 releases in the last 12 months

see the full history below

Release timeline

40 releases · Jun 2018 to Apr 2022
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 40
  1. 0.9.17 16 Apr 2022
    Release notes
    • Support for Flutter on Windows, Linux and MacOS
    Open source →
  2. 0.9.16 19 Nov 2020
    Release notes
    • Update TZDB to 2020d.
    • Fixed loading issues with web, flutter web, and flutter.
    Open source →
  3. 0.9.15 12 Oct 2020
    Release notes
    • :bug: fix related to #39
    Open source →
  4. 0.9.14 12 Oct 2020
    Release notes
    • Updated TZDB to 2020b.
    • Merged PR's #35, #36, #37, and #39.
    Open source →
  5. 0.9.13 02 Aug 2020
    Release notes
    • Updated TZDB to 2020a.
    Open source →
  6. 0.9.12 23 Aug 2019
    Release notes
    • Made some changes because of Pana.
    Open source →
  7. 0.9.11 23 Aug 2019
    Release notes
    • Added Interval.overlaps;
    • Made some changes because of Pana.
    Open source →
  8. 0.9.10 19 Aug 2019
    Release notes
    • Fixes for ddc.
    • Updated TZDB to 2019b.
    Open source →
  9. 0.9.9 01 Jan 2019
    Release notes
    • Fix for issue #15. Updated TZDB to 2018i.
    Open source →
  10. 0.9.8 13 Dec 2018
    Release notes
    • Fix for issue #13. May investigate better solution in the future.
    Open source →
  11. 0.9.7 08 Dec 2018
    Release notes
    • Updated TZDB to 2018g.
    Open source →
  12. 0.9.6 28 Nov 2018
    Release notes
    • Merged #1 - Fix for when cultureId is null
    Open source →
  13. 0.9.5 31 Oct 2018
    Release notes
    • Many API changes.
    • LocalTime is now backed by a Nanosecond based Time Instance.
    • Additional tests added.
    • Performance improvements.
    Open source →
  14. 0.9.4 06 Aug 2018
    Release notes
    • Many API changes.
    • Fix for Dart 2.0.
    Open source →
  15. 0.9.3 04 Aug 2018

    Nothing published for this version

  16. 0.9.2 01 Aug 2018

    Nothing published for this version

  17. 0.9.1 26 Jul 2018
    Release notes
    • Continued the API normalization work; removed add*, minus* where it did not add any performance gains. Time plus\minus --> add\subtract, added an abs method.
    • LocalDateTime\LocalDate\LocalTime added periodUntil\periodSince, removed difference, made static method difference from differenceBetween
      • same with OffsetDateTime except time vs period
    Open source →
  18. 0.9.0 25 Jul 2018
    Release notes
    • Added a LocalDate.today(), LocalDateTime.now(), LocalTime.timeOfToday() constructors.
    • Refined Local* api's to be more like dart:core.DateTime
      • Did the same with Instant, ZonedDateTime, OffsetDateTime, Offset, Period
    Open source →
  19. 0.8.5 22 Jul 2018
    Release notes
    • Constructor is now LocalDateTime.localDateAtTime(LocalDate, LocalTime)
    • Formatted much API Documentation.
    • Removed operator based dynamic dispatch from all operator - methods. Many times it makes sense to for example, subtract to do this, end_date - start_date = delta_time and to do this, end_date - delta_time = start_date but only makes sense for addition to do this, start_date + delta_time = end_date, you'd never do this, start_date + end_date = delta_time (doesn't really make sense) -- so, the operator - methods have been defaulted to do the same operation as the operator + methods. If Dart 3 gets compile time dispatch, these other methods will be re-enabled.
    Open source →
  20. 0.8.4 22 Jul 2018
    Release notes
    • Bugfix for Flutter.
    Open source →
  21. 0.8.3 22 Jul 2018
    Release notes
    • Removed all the Period.from* constructors, added a named constructor, constructor const Period({this.years: 0, this.months: 0, this.weeks: 0, this.days: 0, this.hours: 0, this.minutes: 0, this.seconds: 0, this.milliseconds: 0, this.microseconds: 0, this.nanoseconds: 0}); instead of Period.fromYears(int years).
    • Moved collection: "^1.14.10" to collection: "^1.14.6" in order to satisfy Flutter unit testing requirements. time_machine can not be unit tested directly in flutter because of a breaking change between matcher: ^0.12.2+1 and matcher: 0.12.3 with regards to TypeMatcher going from an abstract non-instanced class to a regular instanced class. See flutter_test/pubspec.yaml.
    Open source →
  22. 0.8.2 16 Jul 2018
    Release notes
    • Instant constructors condensed: Instant.utc, Instant, Instant.julianDate, Instant.dateTime, Instant.epochTime
    • Removed from from a lot of constructors, heavily redundant (well, maybe not so redundant with the loss of new)
    • Added a timeZone override to TimeMachine.init() so you can supply a local DateTimeZone to Flutter if you something like flutter_native_timezone loaded as well.
    • CalendarSystem cleaned up.
    Open source →
  23. 0.8.1 15 Jul 2018

    Nothing published for this version

  24. 0.8.0 15 Jul 2018
    Release notes
    • Dart 2.0 ready to go. TimeMachine 0.7.1 was the last version that will work on Dart 1.24.3.
      • Added a lot of BigInt code, there is no going back now. Added Time.canNanosecondsBeInteger, Time.fromBigIntNanoseconds(), Time.totalNanosecondsAsBigInt
      • The Dart2JS example compiled sized dropped by about 11%.
    Open source →
  25. 0.7.1 13 Jul 2018
    Release notes
    • No more dart analysis errors on 1.24.3.
      • Refactored away the port-helper KeyValuePair and OutBox classes.
      • Fixed (or annotated) all unused variables, fields, elements, and imports issues.
    Open source →
  26. 0.7.0 12 Jul 2018
    Release notes
    • Updated LocalDateTime.at() to reflect the LocalTime constructor update.
      • note: renamed LocalDateTime.at() to LocalDateTime() and then renamed the original LocalDateTime(LocalDate, LocalTime) to LocalDateTime.combine(LocalDate, LocalTime)
    • Added Badi, Coptic, Hebrew, Islamic, Persian, and UmAlQura calendars.
      • Tested sat on VM/JS.
    Open source →
  27. 0.6.0 08 Jul 2018
    Release notes
    • Removed the concept of ticks and replaced all the functions with microseconds; Rational: the only place ticks shows up as a concept is here https://api.dartlang.org/stable/1.24.3/dart-core/Stopwatch/elapsedTicks.html; ticks from .NET-land is 100 nanosecond unit of time; ticks from dart is based on a dynamic frequency number, on my machines it's 1 us in the browser and 1 ns in the vm.
    • Simplified LocalTime constructors; now one generic + one that takes a Time sinceMidnight. (from 7 initial)
    • Added microsecond/millisecond logic around DateTime conversions wrt Platform
    • Cleaned up Offset - removed subsecond constructors, since Offset can't be subsecond, and made the fromSeconds constructor the default constructor.
    Open source →
  28. 0.5.0 06 Jul 2018
    Release notes
    • Major API Changes (Sorry!)
    • Span (denotatively and connotatively wrong) to Time (to just connotatively wrong)
    • text_patterns moved to time_machine_text_patterns from time_machine global (still thinking about what things should be not visible by default)
    Open source →
  29. 0.4.1 01 Jul 2018
    Release notes
    • Missed a logging reference (took it out).
    Open source →
  30. 0.4.0 01 Jul 2018

    Nothing published for this version

  31. 0.3.0 27 Jun 2018

    Nothing published for this version

  32. 0.2.2 21 Jun 2018
    Release notes
    • Fixed bug introduced in 0.2.1; (Conditional Imports are hard); dart.library.js seems to evaluate to false in DDC stable. Put back as dart.library.html.
    Open source →
  33. 0.2.1 21 Jun 2018
    Release notes
    • Fixed bug introduced in 0.2.0 causing TimeMachine.Initialize() to not fully await.
    Open source →
  34. 0.2.0 20 Jun 2018
    Release notes
    • No more specific imports for your platform. Flutter usage was streamlined significantly.
    Open source →
  35. 0.1.1 19 Jun 2018
    Release notes
    • Broke some things while making this work on many platforms. Fixed them (still need to do unit tests on js).
    Open source →
  36. 0.1.0 18 Jun 2018
    Release notes
    • Made some changes to try and less confuse Pana.
    Open source →
  37. 0.0.4 18 Jun 2018
    Release notes
    • Now works on Flutter, Web, and VM!
    Open source →
  38. 0.0.3 16 Jun 2018

    Nothing published for this version

  39. 0.0.2 13 Jun 2018
    Release notes
    • Many things have been Dartified. Constructors consolidated, names are lowercased, @private usage heavily reduced.
    Open source →
  40. 0.0.1 09 Jun 2018
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive