menu
techminis

A naukri.com initiative

google-web-stories
Home

>

PC & Laptops News

>

ISO8601Dat...
source image

Mjtsai

1M

read

182

img
dot

ISO8601DateFormatter and Fractional Seconds

  • The DateFormatter in iOS loses microseconds precision during conversion between string and Date types, leading to incorrect sorting orders.
  • To address this issue, the ISO8601DateFormatter can be used for parsing ISO8601 formatted timestamps with microseconds precision.
  • However, the withFractionalSeconds option of the ISO8601DateFormatter only preserves three digits, potentially leading to further loss of precision.
  • Previously, other topics related to date and timestamp handling in iOS were discussed, including a fast timestamp parser in Swift and date format changes in App Store receipts.

Read Full Article

like

10 Likes

For uninterrupted reading, download the app