| Did you know ... | Search Documentation: |
| Send methods |
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.
->before
and date->equal.->equal
and date->after.get_date()
library and convert various commonly used representations of a date.
Unfortunately this library is undocumented ...->before, date->after
and date<-difference.?- new(D, date(0, 35, 14)).
Represents 14.35h today.
See date->set
for details and limitations.
.e. the number of seconds elapsed since the
epoch, Jan 1, 1970.
This value is passed as a float to avoid the limited range supported by the XPCE int type.
Inherits description from: date<-posix_value
->initialise
if arguments are provided.
It uses the mktime() function which appears to have
different behaviour on different systems on timestamps before the epoch
at Jan. 1, 1970 UTC. On some systems it returns negative values, while
on others it returns the error code -1. Note that even on systems with
negative values the last second before the epoch cannot be represented.
An error is returned if mktime() returns -1.