Hacker News new | past | comments | ask | show | jobs | submit login

Nothing wrong with that. Can be useful for non-Ruby apps, for example. BTW. A JSONP version could make usable from JavaScript..



It's already usable from JS.

    $.get("/time-thingy/utc/" + whatever, function(date) { 
        alert("your UTC timestamp is " + date);
    });
Not to be snarky, though, but this seems pretty silly. What major web framework doesn't have natural-language date parsing? There are BSD-licensed C libraries that do it. Why remote that?


Pointers to the C libraries, please! (beyond GNU Getdate, which doesn't really do this.)


I went looking for the one CVS uses, found this:

http://www.datejs.com/

and stopped looking.


I was thinking more as a web service, so JSONP is for cross site XHR.

I assume someone would not have a good NL date parser for their environment, or won't be able to run it for some reason, or would simply prefer Chronic.

A lot of stuff that seems pointless ends up being useful, and vice versa. Assuming it's on Heroku's free plan, it costs nothing to run forever, so why not? If it helps 10 people, it already beat most web pages.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: