Durat.io
Dev tools
time calculator
SHOW HN2015
119points
39comments
#202of 2,565 in 2015
Top 8%of 2015 by points
How HN took it
MixedNo clear lean
4 positive, 8 neutral or asking, 0 mixed, 8 critical, out of 20 comments about the project. Thread score -0.13.
Execution: 0 for, 6 againstIdea: 2 for, 1 againstDesign: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful tool for confusing time calculations
From 2 comments
Nice work. Looks like a useful tool, especially since time calculations can be confusing. Remember to sanitize your input.…
ejcx on HNGreat job! Well done.
david927 on HN
Objections
Input sanitization XSS vulnerabilities
From 3 comments
Nice work. Looks like a useful tool, especially since time calculations can be confusing. Remember to sanitize your input.…
ejcx on HNXSS? http://durat.io/?q=%22%20/%3E%3Cscript%3Ealert(1)%3C/script%3E
funerr on HNThe site is vulnerable to xss: http://durat.io/?q=this%20site%20is%vulnerable%20to%20XSS%3Cscript%3Ealert(%27xss%27);%3C/script%3E
magnusstubman on HN
Parser errors and crashes on edge-case inputs
From 2 comments
Looks pretty good. Some nits: The query "9999-99-99" throws java.time.format.DateTimeParseException (http://durat.io/?q=9999-99-99). The query "2147483647 days + 1 day" throws…
cbhl on HNMy first try was "today + 6 weeks". Got "Lexing failed". My second try was "now + 2 hours in new york". Got "Lexing failed". I suppose, I doesn't understand my accent ;)
sprain on HN
Output format is verbose and confusing
From 1 comment
Looks OK. Now looking at the examples, the answer for "now in zone Lisbon" gives 2015-07-13T13:31:47.968+01:00[Europe/Lisbon] Why not just "today, 14:31:47, Lisbon"? If I enter…
acqq on HN
Requests
Support more natural syntax such as weeks
From 1 comment
My first try was "today + 6 weeks". Got "Lexing failed". My second try was "now + 2 hours in new york". Got "Lexing failed". I suppose, I doesn't understand my accent ;)
sprain on HN
Simpler output format
From 1 comment
Looks OK. Now looking at the examples, the answer for "now in zone Lisbon" gives 2015-07-13T13:31:47.968+01:00[Europe/Lisbon] Why not just "today, 14:31:47, Lisbon"? If I enter…
acqq on HN
Questions
Meaning of 'today' across time zones
From 1 comment
https://xkcd.com/1179/ BTW: what does "today" mean when your wall clock shows e.g. 23:25:00? Is it "today in Lisbon" or "today at your timezone"?
virgoerns on HN
Alternatives named
WolframAlpha
From 2 comments
Can it do anything wolframalpha.com can't?
kozhevnikov on HNI came here to say this. I use WA for all my time calculations.
DiabloD3 on HN
GNU date from coreutils
From 1 comment
If you're *nix user, you can quite easily perform this kind of stuff using date, or at least using date from coreutils. ``` $ date -d 'today + 6 weeks' Mon Aug 24 13:15:54 CEST…
przemoc on HN
Rebol
From 1 comment
Ever heard about rebol? >> now == 13-Jul-2015/11:46:45+3:00 >> now + 4:15 == 13-Jul-2015/16:01:52+3:00
mapcars on HN
PostgreSQL date arithmetic
From 1 comment
PostgreSQL also does time calculations spectacularly well.
anc84 on HN
Soulver
From 1 comment
I've been using Soulver on mac which does a lot of similar unit calculations, conversions etc. Works with time (but maybe not as advanced) and a lot of other things.
mtourne on HN