[alt.hackers] Yesterday

johnl@iecc.cambridge.ma.us (John R. Levine) (12/05/90)

What's the easiest way to get yesterday's date in a string?  After some
poking around, give or take a time zone, this seems to do the trick:

 $ TZ=EST29EDT date

-- 
John R. Levine, IECC, POB 349, Cambridge MA 02238, +1 617 864 9650
johnl@iecc.cambridge.ma.us, {ima|spdcc|world}!iecc!johnl
"Typically supercomputers use a single microprocessor." -Boston Globe

tr@samadams.princeton.edu (Tom Reingold) (12/11/90)

In article <1990Dec04.175617.5465@iecc.cambridge.ma.us>
johnl@iecc.cambridge.ma.us (John R. Levine) writes:

% What's the easiest way to get yesterday's date in a string?  After some
% poking around, give or take a time zone, this seems to do the trick:
% 
%  $ TZ=EST29EDT date

This is very cute.  It works for stamping mail wrong, too.  Well,
almost.  If the recipient doesn't look carefully, you fool him.
--
        Tom Reingold
        tr@samadams.princeton.edu  OR  ...!princeton!samadams!tr
        "Warning: Do not drive with Auto-Shade in place.  Remove
        from windshield before starting ignition."