Replies: 1 comment 1 reply
-
I agree that it would be useful to provide a well-lit path for formatting the current time in ICU4X. However, I'm not sure if doing it all internally in ICU4X is the right architecture. Some challenges:
What is in scope for ICU4X is the handling of time zone transitions and performing time zone calculations, since this is required by both ECMA-402 and Temporal and can be done as no-std. Therefore, I do expect ICU4X will get a function where the user provides the current timestamp and time zone and can get a |
Beta Was this translation helpful? Give feedback.
-
Is there a straightforward way to get "today's date" or "now" using
icu_calendar
? There don't seem to be any conversions fromInstant
, nor any functions in that crate resemblingnow
ortoday
, nor any constructors that don't have you bring all of your own datetime components. Is there something I'm missing? It seems like a shame to being another heavyweight timestamps crate, liketime
orchrono
, just to do this initializer step foricu
.Beta Was this translation helpful? Give feedback.
All reactions