Open DartBot opened 9 years ago
Comment by alan-knight
There is a way, it just isn't actually implemented yet. See also 10139
Changed the title to: "Implement DateFormat.formatDuration and parseDuration".
It's been 4 years and unfortunately, there is no update on this issue. Should we wait longer? Or, should we expect these functions not to be implemented at all? 🙂
A lot more of these functions are available now in JS Intl, so the idea for future improvements is to be able to delegate them to the JS versions, or to existing libraries on mobile. There is work happening on this, so durations might actually happen in the not too distant future.
Thanks :) So, I continue using the alternative on mobile for now.
Possible way forward? https://github.com/desktop-dart/duration/issues/7
fwiw, I find intl
to be incredibly useful in Flutter. It never occurred to me to use native libraries. Was there a specific library you're suggesting as an alternative to intl
on mobile?
Any news about this function?
Any updates?
bump
Issue by danrubel Originally opened as dart-lang/sdk#19802
Add a way to localize times in a relative way to the itl package, like:
Yesterday, Two minutes ago, Just now, tomorrow... //////////////////////////////////////////////////////////////////////////////////// Editor: 1.5.0.dev_04_23 (2014-06-24) OS: Windows 8 - amd64 (6.2) JVM: 1.7.0_51
projects: 6
open dart files: 0
auto-run pub: true localhost resolves to: 127.0.0.1 mem max/total/free: 1778 / 1236 / 365 MB thread count: 31 index: 1152663 relationships in 191806 keys in 1716 sources
SDK installed: true Dartium installed: true