icu4x
icu4x copied to clipboard
Add a ZonedTime type
It can live next to ZonedDateTime.
Why: in order to use TimeFormatter to format a time and a zone together.
Other solutions considered but infeasible:
- Use ZonedDateTime: no, it has a calendar, but TimeFormatter has the
()calendar - Implement
InFixedCalendar<()> for ZonedDateTime: no, this breaks type inference for everyone else - Add
format_any_calendarto TimeFormatter: possible, but seems confusing; ZonedTime is better
@Manishearth @robertbastian