tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* How to manipulate dates and times under 4.0D
@ 1999-06-16  0:03 Allen Belk
  0 siblings, 0 replies; only message in thread
From: Allen Belk @ 1999-06-16  0:03 UTC (permalink / raw)
  To: tru64-unix-managers

I am looking for a way to manipulate days and times by adding/subtracting X
number of days from the current date.  For example, if todays date is
19990615 (date "+%Y%m%d"), how could I get the date two weeks from now - add
17 days to the current date?  This is easy under OpenVMS using the DELTA
specifications.  Even linux has the ability to manipulate dates in this
manner (date -d).  I know I could write a script to manipulate the date
string as groups of integers but then I would have to accomodate for
calendar features.  Any help would be appreciated.

Thanks,

Allen Belk

 | Allen Belk, Data Operations Supervisor
 | Office of Technology Resources
 | University of Southern Mississippi
 | allen.belk@usm.edu  |  601.266.4107

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-06-16  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-16  0:03 How to manipulate dates and times under 4.0D Allen Belk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox