Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript version? #84

Open
fkleedorfer opened this issue Aug 27, 2014 · 4 comments
Open

Javascript version? #84

fkleedorfer opened this issue Aug 27, 2014 · 4 comments

Comments

@fkleedorfer
Copy link

Thanks and Congratulations on your highly useful library!
I understand it is made with ANTLR, and I found out that a javascript generator target is in the works: https://theantlrguy.atlassian.net/wiki/display/ANTLR4/JavaScript+Target
Have you thought about a javascript version of natty (which would be extremely useful for some scenarios)? How would one go about doing that?
I thought about trying it, but I wasn't able to find any grammar files in your project. I have to admit that I haven't worked with ANTLR before so chances are that I missed something.

@michaelahlers
Copy link

This is a good idea, but pending an implementation by @joestelmach you might want to try Moment.js. By far, it's the best JavaScript datetime library I've come across, and while it's parsing capabilities aren't as rich as Natty's, it certainly holds in own for interpreting free-form, absolute dates.

@fkleedorfer
Copy link
Author

For parsing natural language dates, I only know of moment-natural which is not very versatile. Is there anything else for moment? Otherwise sugarjs and chrono give good results, but natty is way better.

@michaelahlers
Copy link

Not that I know about (and you're way ahead of me).

@iradul
Copy link

iradul commented Mar 25, 2015

Moment.js is probably the best datetime library but if you need just a javascript date parser datejs is the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants