[Jprogramming] How do I format a timestamp from the past?
Ian Clark
earthspotty at gmail.com
Tue Jan 23 03:02:36 UTC 2018
(6!:0 NIL) returns the current date/time as an integer 6-list timestamp.
(6!:0 'hh:mm:ss MM/DD/YY') ditto, but in the specified format (y).
How can I use the *selfsame* algorithm to format any (valid) timestamp?
If the answer is "only by writing my own formatting verb, or by setting the
system clock", might there be a case for extending (6!:0) to take an
optional (x)? Not just an integer 6-list timestamp as described, but a few
other forms, like (_1) meaning yesterday.
More information about the Programming
mailing list