Format long specific non-location format in 2.0 #5885
Unanswered
Nerixyz
asked this question in
Duration Formatter
Replies: 1 comment
-
Good question! There's code that always sets the time zone length to Short when it is combined with other fields: icu4x/components/datetime/src/raw/neo.rs Line 592 in 8717dfc This was done to reduce data size; however, I don't see it mentioned in UTS 35. And, even if we do this by default, there should at least be a way to get the other behavior (long time zone name). The fix would involve adding support for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was trying the new 2.0.0-beta to format some time zones. I want to format the time like this:
12:08:19 Mitteleuropäische Normalzeit
. I'm probably missing something, but it seems like that's not possible, neither with theCombo<T, Zs>
(note thatCombo<T, Z>
can't be constructed) nor with theCompositeFieldSet::TimeZone
:As you can see, it's only possible to format the short specific non-location style, not the long one, when combined with a time.
Aside: the
CompositeFieldSetSerde
(experimental) specifiesFieldSetField::Zone{Generic,Specific}{Short,Long}
but they aren't used.Aside2: the tests for the lengths are all skipped because none of them specify a semantic skeleton.
Beta Was this translation helpful? Give feedback.
All reactions