Is there a good library for parsing dates from a string in Haskell or ANSI C? Something like PHP's strtotime, or Ruby's Time.parse or Chronic, or whatever.
If it can parse "next week", etc, then that's ideal, but even if it can just figure out for itself what format a complete date string is in and return the result, that would be good enough.
I'd really rather not port Chronic or extract strototime by hand...
After much hunting, I discovered that the date code in Git is pretty good and not very dependent on the rest of Git, so I pulled it out and made http://hackage.haskell.org/package/git-date
I'm willing to use a better solution if there is one :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With