Unsatisfactory Software software > amiga
Software Magazines Misc About
Contents | Index | Help | < Browse | Browse >
FACTS has an ARexx port called "FACTS". The version number shown next to
some of the commands is the lowest version of FACTS which implements that
command. Please use VERSION and REVISION to check your script will work,
and exit if the user is running an old version of FACTS.

There are a few other standard commands (HIDE, SHOW, QUIT, ENABLE and
DISABLE) which do the same as clicking buttons on the Commodities Exchange.
In addition are the following;

DSTMODE 2.1
Will return 1 if DST is enabled, 0 otherwise. Together with AutoDST this
could be used in scripts to automatically set other program's DST settings.

DSTMODE 2.4
v2.4 of FACTS has extra functionality on the DSTMODE command: it can toggle
DST on and off according to the current settings. This will not work
terribly well in conjunction with AutoDST! A '1' turns DST ON, and a '0'
turns it off.

GETTIME
If possible, FACTS will connect to the timeserver and return the current
date and time. If FACTS is unable to connect for some reason, it will
return the current system time instead. The format is as follows;
Day Mmm dd hh:mm:ss year

GETGMT 4.7 (no need to check revision)
Same as GETTIME, except the time is returned as GMT/UTC instead of local
timezone.

SETTIME
Will connect to the timeserver and set the Amiga clock according to the
current default operation. If there was an error, RC will be set as;
1 = No TCP/IP stack
2 = Cannot connect to server (or not online)
3 = Error with host name lookup (v2.1)
4 = Receive operation timed out (v2.1)
5 = Server not synchronised (v2.2; sntp mode only)

TIMEZONE 4.7 (no need to check revision)
Returns the timezone in standard Internet "date header" format.
eg one hour east of GMT is returned as +0100