| Did you know ... | Search Documentation: |
| date->advance |
second.
Please note that larger units are omitted due to their unclear
semantics. Units are converted to seconds. Given that the fields are in
local time, creating a time from fields, date->advance
and get the fields may yield strange results. For example:
?- new(D, date(0, 0, 0, 30, 10, 2005)),
send(D, advance, 1, day),
get(D, string, string(Date))
Date = 'Sun Oct 30 23:00:00 2005'
See also date->month, etc.