| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.98.0/docs/handbook/_sources/libraries/dates.rst.txt |
.. _library_dates:
dates
The date object implements some useful calendar date predicates.
It also provides portable predicates for date-time handling, including:
valid_data_time/1-2)
Date-time values are represented using the date_time/6 compound term:
date_time(Year, Month, Day, Hours, Minutes, Seconds)
The time object implements some useful time predicates.
Please note that the functionality of these objects depends on the chosen Prolog support for accessing the operating system time and date.
Open the `../../apis/library_index.html#dates <../../apis/library_index.html#dates>`__ link in a web browser.
To load all entities in this library, load the loader.lgt utility
file:
::
| ?- logtalk_load(dates(loader)).
To test this library predicates, load the tester.lgt file:
::
| ?- logtalk_load(dates(tester)).