Ann: julian pack (date and time library)

Michael Hendricks <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFHuXuZnsiruAwrsVzr6bNRrJWqit1oY+brrrQDcoNQ+PCzJJA@mail.gmail.com>
I've released a date and time library that I've been using for a while.
 It's implemented with library(clpfd), so you can do some powerful
calculations with relative ease.  A fun little example is shown on the
project's home page: http://mndrix.github.io/julian/

In which year of Dwight Eisenhower's presidency did the Fourth of July
holiday fall on a Sunday?

?- form_time([dow(sunday), Year-07-04]), Year in 1953..1961.Year = 1954.

It also handles standard stuff like Unix epoch times, RFC3339 strings
(parsing and generating), date arithmetic, date comparison, etc.  The
project's test suite (under t/) contains some more examples.  The home page
also has a three-part tutorial.

I welcome bug reports, feedback, criticism and humorous name calling.

-- 
Michael
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.