1847479 Members
2566 Online
110265 Solutions
New Discussion

Re: Date calculation

 
Fedon Kadifeli
Super Advisor

Date calculation

Is there a simple command to calculate dates like "yesterday", "3 months ago", "next week", "100 days from now" etc. I know that there is a functionality like this in Linux:

date --date=yesterday
date --date=tomorrow

How about HP-UX?
2 REPLIES 2
Thierry Poels_1
Honored Contributor

Re: Date calculation

Hi,
if you search this forum you will find some nice (as in complex ;) script that will fit your need.
Personnally I would go for a very small & simple C-program.
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Rita C Workman
Honored Contributor

Re: Date calculation

Here's a thread to a site that does a date calc and I've attached a slightly different date calculator you may be able to make some use of:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x57eff841489fd4118fef0090279cd0f9,00.html

Regards,
/rcw