Computing.Net > Forums > Solaris > Adding 90 days to current date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Adding 90 days to current date

Reply to Message Icon

Name: rameez raja
Date: July 9, 2008 at 05:27:46 Pacific
OS: solaris
CPU/Ram: 512
Comment:

Hi i want to add 90 days to current date

im using solaris.
Is there any command or script to achive this?




Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: July 9, 2008 at 08:41:52 Pacific
Reply:

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:

http://www.computing.net/answers/un...


0

Response Number 2
Name: fpmurphy
Date: July 22, 2008 at 11:44:39 Pacific
Reply:

If ksh93 is available to you, the following will work:

$ printf "%T\n" "now + 90 days"
Mon Oct 20 14:42:54 EDT 2008
$


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Adding 90 days to current date

date changes after manual altering www.computing.net/answers/solaris/date-changes-after-manual-altering/4304.html

solaris shell command www.computing.net/answers/solaris/solaris-shell-command/803.html

Need help in working with dates www.computing.net/answers/solaris/need-help-in-working-with-dates/3964.html