The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-03-2008
megh megh is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 38
how to know date information ?

Hi all,
I want to know date information on unix about 105th day's date from today's date.
  #2 (permalink)  
Old 08-03-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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
The default date available on HP-UX is less capable I believe, but the GNU coreutils package is just a download away. Or search this site for other workarounds; there are multiple threads about date calculation on HP-UX, including I believe something in the FAQ section.
  #3 (permalink)  
Old 08-05-2008
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
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
Closed Thread

Bookmarks

Tags
unix download

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0