juri / Parse3339

A fast pure Swift RFC 3339 timestamp parser
MIT License
43 stars 2 forks source link

`Date` property discards nanoseconds #8

Closed stephencelis closed 1 year ago

stephencelis commented 1 year ago

When incorporating some of your fun improvements in our parser combinator demo here I noticed that the Date constructor doesn't currently make use of the nanoseconds.

(I think your parser will probably still win out over our combinators even with that fixed, though it may close the gap a little :wink:)

juri commented 1 year ago

Fixed in #6 and #9 .

stephencelis commented 1 year ago

@juri I think the .date helper still does not utilize .nanoseconds (date components does just fine, though).

juri commented 1 year ago

Oh, heck. Thanks for pointing that out. Will fix.

juri commented 1 year ago

Now it should really be fixed.