Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi i want to add 90 days to current date
im using solaris.
Is there any command or script to achive this?

First, if this is a scripting question, you might try the Unix forum.
Second, what are you trying to do? Add 90 days to a variable set to the current date? change the system date?
Third, date arithmetic in the Unix shell is problematic. Look at this link:

If ksh93 is available to you, the following will work:
$ printf "%T\n" "now + 90 days"
Mon Oct 20 14:42:54 EDT 2008
$

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |