Re:Show HN: Duckling – Open-source datetime expression parsing
by ar7hur on Wednesday October 01, 2014 @12:42PM
(#8395822)
This is just a demo website, but in a real use case you would pass a context (for instance with the user timezone, country...) with your library calls.
You can also try the same sentence in French, you'll get February first.
Re:Show HN: Duckling – Open-source datetime expression parsing
by Someone on Wednesday October 01, 2014 @05:30PM
(#8397877)
Are there countries that use slashes for d/m/y?
What surprised me was "1-2-2014":
From Thursday, 2 October 2014 at 1:02:00 +0000 (UTC)
to Wednesday, 1 January 2014 at 0:00:00 +0000 (UTC)
On top of the "where did it get those timestamps from", time flows backwards in that interval.
Re:Show HN: Duckling – Open-source datetime expression parsing
by EyeballKid on Wednesday October 01, 2014 @06:01PM
(#8398067)
> Are there countries that use slashes for d/m/y?
Oh yes, loads of them. Lots more than use m/d/y anyway. See https://en.wikipedia.org/wiki/Date_format_by_country
Canada looks the most hellish, eg: "Immigration Canada Stamps use DD/MM/YYYY and Canada Customs Stamps use MM/DD/YYYY." eek!
Unless you are checking my IP address to guess the best convention...