-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for .withFractionalSeconds to ISO8601DateFormatter. #1586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
On behalf of @parkera, approved. |
Thanks everyone. I'd be happy to work on the underlying issue of making it conditional on a new-enough underlying ICU version. |
Is there a macro defined by ICU that we could use to conditionally compile this in? |
Yes, but we have to pipe it through to the Swift build somehow. |
ICU defines |
I've done some sleuthing. As far as I can see: |
My next step is to run DarwinCompat and see if the new tests pass on Darwin as well. If they do, it means 16.04 supports at least as much as Darwin. |
(or is a strong signal to that effect.) |
If someone could run tests here and check they pass on 14.04, it'd eliminate ambiguity. But I don't have a 14.04 box handy. |
To be clear: it looks like 14.04 (ICU 52.1) has support for the |
For completeness, Ubuntu 18.04 ships with 60.2 |
I decided to just set up a 14.04 VM, see if tests run there, and if so just introduce the API. |
Tests pass locally on 14.04.
|
Thanks for your work on this @millenomi, and thanks for the help getting it put together, @pushkarnk! |
This fixes SR-7079.