[–] mryan 10y ago ↗ Python's parsedatetime module can do some level of language parsing.https://github.com/bear/parsedatetimeExamples:next thursday at 4pmat 4pm2 hours before noon2 days from tomorrow
[–] stray 10y ago ↗ Have a look at these:- https://gist.github.com/akatzbreaker/5849024- https://github.com/chesles/naturaltime- https://github.com/kvh/recurrent- https://github.com/bear/parsedatetime- https://github.com/Carbon/Language
[–] libx 10y ago ↗ You can check Rebol http://www.rebol.com/ and the new Red http://www.red-lang.org/ programming languages. The latter one not yet production ready.In Rebol (and Red) you can just do the following: print 3:30am + 00:07:19 ; increment time values properlyNote that ';' is the identifier for a comment.
3 comments
[ 3.6 ms ] story [ 17.6 ms ] threadhttps://github.com/bear/parsedatetime
Examples:
next thursday at 4pm
at 4pm
2 hours before noon
2 days from tomorrow
- https://gist.github.com/akatzbreaker/5849024
- https://github.com/chesles/naturaltime
- https://github.com/kvh/recurrent
- https://github.com/bear/parsedatetime
- https://github.com/Carbon/Language
In Rebol (and Red) you can just do the following: print 3:30am + 00:07:19 ; increment time values properly
Note that ';' is the identifier for a comment.