* SUMMARY: ksh date formats
@ 2000-11-28 10:49 Mark Bowman
0 siblings, 0 replies; only message in thread
From: Mark Bowman @ 2000-11-28 10:49 UTC (permalink / raw)
To: tru64-unix-managers
Many thanks to all that replied to my request for examples of easy ways
perform date calculations in scripts.
Some of the many examples were one line PERL commands:-
% perl -e 'use POSIX qw(strftime); print strftime("%x\n", localtime(time));'
11/27/00
% perl -e 'use POSIX qw(strftime); print strftime("%x\n", localtime(time -
86400));'
11/26/00
% perl -e 'use POSIX qw(strftime); print strftime("%x\n", localtime(time -
7*
86400));'
11/20/00
...To moving your timezone back!
# env TZ=MET+24 date +'%m/%d/%y'
To downloading a piece of software which can be found here:-
ftp://ftp.gnu.org/gnu/sh-utils/sh-utils-2.0.tar.gz
Which I believe will do the trick.
Other links:
http://www.ornl.gov/its/archives/mailing-lists/tru64-unix-managers/2000/08/msg00323.html
http://www.injunea.demon.co.uk/pages/page212.htm
Regards
Mark
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-11-28 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-28 10:49 SUMMARY: ksh date formats Mark Bowman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox