Comments (3)
This is infeasible. It comes up a few times as wanting to parse a Date like 20150429, but that's not a good use of this library. This is for internationalization. If you want to read a hard-coded datetime format with fixed length fields you can do that much, much more efficiently. This expects to print the fields in many different ways depending on locale information, possibly not in the same order, and the field specifies are not interpreted literally. That is, MM does not necessarily mean a padded two digit date, so if there are no delimiters we really can't handle it.
from i18n.
For others looking for a solution to this, DateTime.parse provides this capability.
https://api.dartlang.org/stable/1.24.3/dart-core/DateTime/parse.html
from i18n.
Well that's interesting, I didn't realize that. Thanks for pointing it out.
from i18n.
Related Issues (20)
- Docs state extracting from code supports wildcards, but it does not
- TODO for `package:messages`
- feat(intl): allow abbreviated months not strictly being title cased (MMM, LLL) HOT 5
- Invalid locale "se_SE" HOT 1
- Compare 2 DateFormat.Jms HOT 1
- Erroneous NumberFormat locale - pt_PT HOT 4
- Currency symbol is returning the ISO currency symbol instead of the actual symbol. HOT 1
- The isRtlLanguage method returns false for the RTL Kurdish (Sorani). HOT 2
- Deincrementing a date, then formatting it causes this library to count back up HOT 1
- Intl Exception when parse currency with symbol as suffix
- Intl round doubles wrong HOT 5
- Consider adding `topics` to `pubspec.yaml` for better discoverability
- update intl_en.arb file HOT 5
- Parsing of dates in "ar" locale fails when typed HOT 3
- NumberFormat.simpleCurrency for es_CO with COP symbol on right and not left HOT 4
- not possible to call initializeDateFormatting('pt_BR',null) as described in pub.dev HOT 4
- Use `native_toolchain_rust` to build ICU4X binary HOT 9
- Marathi language support not present HOT 2
- Long-term `package:intl`/`intl_translation` strategy
- Using intl4x on io platform HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n.