Did you know ... Search Documentation:
Pack julian -- docs/index.md

layout: default title: Date and time library for Prolog ---


library(julian) is a date and time library for Prolog. It allows one to parse, generate and work with dates and times.

It also supports complex relations and queries on dates. Do you want to know in which year of Dwight Eisenhower's presidency the Fourth of July holiday fell on a Sunday? That's easy:

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


A tutorial is available which describes most of Julian's features.

  • [Basics](basics.html)
  • [Time Sets](sets.html)
  • [Constraints](constraints.html)


Using SWI-Prolog 6.3 or later:

?- pack_install(julian).