I need DSL for timing

Does anyone know about DSL for calculating time in order to understand concepts such as "2nd business day after the last business day of the month"?

I don't mind writing a parser, but I need help with the language itself.

+4
source share
4 answers

The canonical source for all this type of Calendar Calculations is from Nachum Dershowitz and Ed Reingold. At first it was the most requested SP&E paper of all time; it was a book; this is now in the third edition. Once you could download Lisp code, but this function seems to have disappeared from the web page. There is also an applet, and it's easy to override; I have implemented implementations in Icon and in Lua.

So, I suggest that you really want, this is their library, and then if you want to have a parser for this, you know how to do it.

+1
source

This may not be what you are looking for, but you can take a look at the chronicle, the Ruby library, to do something like this:

http://chronic.rubyforge.org/

0
source

Take a look at Jay Muntz Dynamic Date Calculator.

This is a different use case, but if you are not disabled by all XML, the same type of presentation language may be used in your case. It was easy for me to work on defining custom calendars.

0
source

For Java, Joda time is really smooth!

0
source

All Articles