|On my system (Ubuntu Linux), Arc's date function raises an error:|
The function is trying to pass a seconds value to the system's date command with the -r option:
date: 1202255642: No such file or directory
Error: "make-string: expects argument of type <non-negative exact integer>; given -1"
But on my Linux, -r takes a file name to print the last modified time for. Is this just a question of varying date commands?
(def date ((o time (seconds)))
(let val (tostring (system (string "date -u -r " time " \"+%Y-%m-%d\"")))
(subseq val 0 (- (len val) 1))))