NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2237 most downloaded on pub.dev
Date and time library for Flutter, Web, and Server with support for timezones, calendars, cultures, formatting and parsing.
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
Support for Flutter on Windows, Linux and MacOS
Fixed loading issues with web, flutter web, and flutter.
- :bug: fix related to #39
One column per quarter.
Merged PR's #35, #36, #37, and #39.
- Updated TZDB to 2020a.
Made some changes because of Pana.
Made some changes because of Pana.
- Fixes for ddc. - Updated TZDB to 2019b.
Fix for issue #15. Updated TZDB to 2018i.
Fix for issue #13. May investigate better solution in the future.
- Updated TZDB to 2018g.
Merged #1 - Fix for when cultureId is null
LocalTime is now backed by a Nanosecond based Time Instance.
- Many API changes. - Fix for Dart 2.0.
Nothing published for this version
Nothing published for this version
Continued the API normalization work; removed add*, minus* where it did not add any performance gains. Time plus\\minus --> add\\subtract, added an ab
Time plus\minus --> add\subtract, added an abs method.LocalDateTime\LocalDate\LocalTime added periodUntil\periodSince, removed difference, made static
method difference from differenceBetween
OffsetDateTime except time vs periodAdded a LocalDate.today(), LocalDateTime.now(), LocalTime.timeOfToday() constructors.
LocalDate.today(), LocalDateTime.now(), LocalTime.timeOfToday()
constructors.Local* api's to be more like dart:core.DateTime
Instant, ZonedDateTime, OffsetDateTime, Offset, PeriodConstructor is now LocalDateTime.localDateAtTime(LocalDate, LocalTime)
LocalDateTime.localDateAtTime(LocalDate, LocalTime)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.- Bugfix for Flutter.
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 Ty…
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).TypeMatcher going from an abstract non-instanced class to a
regular instanced class. See flutter_test/pubspec.yaml.Instant constructors condensed: Instant.utc, Instant, Instant.julianDate, Instant.dateTime, Instant.epochTime
Instant.utc, Instant, Instant.julianDate, Instant.dateTime, Instant.epochTimefrom from a lot of constructors, heavily redundant (well, maybe not so redundant with the loss of new)timeZone override to TimeMachine.init() so you can supply a local DateTimeZone to Flutter if you something
like flutter_native_timezone loaded as well.Nothing published for this version
Dart 2.0 ready to go. TimeMachine 0.7.1 was the last version that will work on Dart 1.24.3.
Time.canNanosecondsBeInteger,
Time.fromBigIntNanoseconds(), Time.totalNanosecondsAsBigIntNo more dart analysis errors on 1.24.3.
Updated LocalDateTime.at() to reflect the LocalTime constructor update.
LocalDateTime.at() to reflect the LocalTime constructor update.
LocalDateTime.at() to LocalDateTime() and then renamed the original LocalDateTime(LocalDate, LocalTime) to
LocalDateTime.combine(LocalDate, LocalTime)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://ap
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.Time sinceMidnight. (from 7 initial)DateTime conversions wrt PlatformSpan (denotatively and connotatively wrong) to Time (to just connotatively wrong)
Missed a logging reference (took it out).
Nothing published for this version
Nothing published for this version
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
dart.library.js seems to evaluate to false in DDC stable.
Put back as dart.library.html.Fixed bug introduced in 0.2.0 causing TimeMachine.Initialize() to not fully await.
No more specific imports for your platform. Flutter usage was streamlined significantly.
Broke some things while making this work on many platforms. Fixed them (still need to do unit tests on js).
Made some changes to try and less confuse Pana.
Now works on Flutter, Web, and VM!
Nothing published for this version
Many things have been Dartified. Constructors consolidated, names are lowercased, @private usage heavily reduced.
- Initial version.
Your coding agent can read these notes before it upgrades. Set up the MCP server →