google / rust_icu

rust_icu: rust bindings for ICU (International Components for Unicode) library
Apache License 2.0
113 stars 34 forks source link

Use better interchange types than UCalendar for date formatting #1

Open sffc opened 4 years ago

sffc commented 4 years ago

ECMA-402 does not expose the Calendar class, in large part because we are working toward a better representation for dates and times in Temporal. I know pure ICU does not currently support any other good types for inputting to your DateFormat, but perhaps this is a place where you want to consider a wrapper with a more friendly API that hides the UCalendar under the hood.

filmil commented 4 years ago

Noted, keep the feedback coming! :)

On Thu, Nov 14, 2019 at 4:03 PM Shane F. Carr notifications@github.com wrote:

ECMA-402 does not expose the Calendar class, in large part because we are working toward a better representation for dates and times in Temporal. I know pure ICU does not currently support any other good types for inputting to your DateFormat, but perhaps this is a place where you want to consider a wrapper with a more friendly API that hides the UCalendar under the hood.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/rust_icu/issues/1?email_source=notifications&email_token=AAB4GMEJ2JEZXQ23CQWD263QTTL3DA5CNFSM4JNF3ETKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZGUZUA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB4GMCSQB6WFA3EARXPCN3QTTL3DANCNFSM4JNF3ETA .

sffc commented 4 years ago

Are you aware of a Rust standard date/time type like java.time, Abseil time, or JavaScript Temporal?