Open schlagelk opened 5 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
ℹ️ Googlers: Go here for more info.
I signed it!
Checklist
Motivation and Context
Milliseconds do not to really seem be supported in any of the date formatting or NSCalendar APIs. Because of that, there is issue #19.
Description
This PR adds a fractional seconds calculation to TimeInterval and a string formatter to DateComponentsFormatter that will append any available fractional seconds as milliseconds (it also adds a localizable string for "milliseconds"). This PR includes s a unit test to verify said code.