The environment variables available on Window is version dependent, and is not a recommended method of passing information.[eclipse 1]: getenv('HOME', Home). Home = "/usr/octopus" yes.
Note that halt is equivalent to exit(0).[eclipse 1]: exit(99). csh% echo $status 99
The library calendar contains a utility predicate to convert this string into a Prolog structure. Another way to access the current time and date is the global flag unix_time. It returns the current time in the traditional UNIX measure, i.e. in seconds since 00:00:00 GMT Jan 1, 1970:[eclipse 1]: date(Today). Today = "Tue May 29 20:49:39 1990\n" yes.
Other interesting timings concern the resource usage of the running ECLiPSe. The statistics/2 builtin gives three different times, the user cpu time, the system cpu time and the elapsed real time since the process was started (all in seconds):[eclipse 1]: get_flag(unix_time, Now). Now = 644008011 yes.
The first figure (user cpu time) is the same as given by cputime/1.[eclipse 1]: statistics(times, Used). Used = [0.916667, 1.61667, 2458.88] yes.