-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Port Moment.js and Moment Timezone to Dart #31523
Comments
Does this package accomplish those goals? https://pub.dartlang.org/packages/timezone |
It's not full featured and not moment.js, but I did write a Gregorian calendar package at some point (https://pub.dartlang.org/packages/date_calendar). There's also intl (https://pub.dartlang.org/packages/intl) which can help with formatting and parsing of DateTimes in various locales. |
I took a deep dive into Dart's datetime and timezone libraries, and compared them with Moment and Moment.timezone. This table summarizes what I found. TLDR; Dart has perhaps 2/3 of the features implemented, but they are scattered across various packages, some official, some 3rd party. Most of what I need has already been written (thanks!), but I still think it would be really nice to have one official and comprehensive package. ;)
|
Based on the updated guidance in https://github.com/flutter/flutter/wiki/Issue-hygiene#closing-issues, I'm going to close this issue, better reflecting the expectation that this is not something that the Flutter team plans to implement. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
The DateTime classes provided by the Dart runtime library are okay but lacking many of the features of e.g. Moment and Moment Timezone. It would be great to have a powerful, world-class library for this, either provided by Flutter itself (to integrate properly with iOS/Android native APIs) or as a package.
https://momentjs.com/
The text was updated successfully, but these errors were encountered: