Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "plcal"

Title:Programming Calendar
Rating:Not rated. Create the first rating!
Latest version:0.0.5
SHA1 sum:eef38145bc3aa7e9cca57426797f536bd7f49b06
Author:la_samlai <samuelli@op.pl>
Maintainer:la_samlai <samuelli@op.pl>
Download URL:https://gitlab.com/PiotrLi/plcal.git
Requires:date_time

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.5eef38145bc3aa7e9cca57426797f536bd7f49b061https://gitlab.com/PiotrLi/plcal.git
97d446cea8281a53c6a56da655e9f1e0f741720133https://gitlab.com/PiotrLi/plcal.git
0.0.4af46c7bedbf217846b7ee11ca90edcf370e558d09https://gitlab.com/PiotrLi/plcal.git
0.0.39e130a0db74a70e21713acf77cc42838056ae9cc5https://gitlab.com/PiotrLi/plcal.git
0.0.2c79cd338cc79cef378df3cdf41baaaaf219c48101https://gitlab.com/PiotrLi/plcal.git
0.0.15255b66162f5cf6a121b1711ee87eade890056b32https://gitlab.com/PiotrLi/plcal.git

Programmable calendar

It's a software to create a programable calendar.

The information will be pleced in files witch prolog-like syntax.

The event is a clausule like:

birth(adam,date(2005,5,23)).

birthday(Person,date(NextYears,Month,DayOfMonth)) :-
        birth(Person,date(Year,Month,DayOfMonth)),
        succ(Year,NextYear),
        plus(Year,150,EndYear),
        between(NextYear,EndYear,NextYears).

And presented by:

:- add_event birth/2.
:- set_event(birth(Person,_),title(format("Birth of ~w"),[Person])).
:- set_event(birthday(Person,_),title(format("Birthday of ~w"),[Person])).

:- set_event(birth(_,Day),day(Day)).
:- set_event(birthday(_,Day),day(Day)).

:- set_event(birth/2,color(yellow)).
:- set_event(birthday/2,color(gold)).

To see your week in terminal:

?- week.

The same effect using days(8).

To export 360 days to ical format:

?- ical(today,360).

You can also reply ical by http like reply_http_page/2

?- reply_ical(today,360).

Contents of pack "plcal"

Pack contains 3 files holding a total of 9.3K bytes.