Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
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 |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.1 | 5255b66162f5cf6a121b1711ee87eade890056b3 | 2 | https://gitlab.com/PiotrLi/plcal.git |
0.0.2 | c79cd338cc79cef378df3cdf41baaaaf219c4810 | 1 | https://gitlab.com/PiotrLi/plcal.git |
0.0.3 | 9e130a0db74a70e21713acf77cc42838056ae9cc | 5 | https://gitlab.com/PiotrLi/plcal.git |
0.0.4 | af46c7bedbf217846b7ee11ca90edcf370e558d0 | 9 | https://gitlab.com/PiotrLi/plcal.git |
0.0.5 | 97d446cea8281a53c6a56da655e9f1e0f7417201 | 29 | https://gitlab.com/PiotrLi/plcal.git |
eef38145bc3aa7e9cca57426797f536bd7f49b06 | 1 | https://gitlab.com/PiotrLi/plcal.git |
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).
Pack contains 3 files holding a total of 9.3K bytes.