![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare date from db2 table to yesterday's Unix system date | sasaliasim | Shell Programming and Scripting | 9 | 12-01-2008 11:37 PM |
| Perl: Extracting date from file name and comparing with current date | MKNENI | Shell Programming and Scripting | 4 | 03-26-2008 04:01 PM |
| date issue-find prevoius date in a patricular format | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 11-15-2007 08:42 PM |
| Changing Creation Date to a Prespecified Date of a File In Unix | monkfan | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 07:15 AM |
| date information of a directory | gfhgfnhhn | UNIX for Dummies Questions & Answers | 1 | 06-29-2006 09:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
GNU date has a -d option which allows you to specify a relative date.
Code:
vnix$ date -d "105 days" Sun Nov 16 10:07:02 EET 2008 |
|
||||
|
Since this thread appears in the HP-UX section
I would think GNU date isn't an option here. If your HP-UX isn't too dated though chances are that you have a decent Perl available. So you could ask Perl what date it is in 105 days from today. Code:
$ uname -srv; perl -le 'print scalar localtime(time+105*86400)' HP-UX B.11.11 U Tue Nov 18 08:58:51 2008 |
![]() |
| Bookmarks |
| Tags |
| unix download |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|