- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Date Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 10:39 AM
05-13-2002 10:39 AM
I got so many quick responses to my last question that I think I will try again. This ought to be easy be it has me completely stumped. Is there a way to determine the number of days since some date in the past. For example, how many days since today and Dec. 1, 1960?
TIA, Ryan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 10:44 AM
05-13-2002 10:44 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd66c50011d20d6118ff40090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 10:54 AM
05-13-2002 10:54 AM
Re: Date Question
#!/usr/bin/sh
PREV_DT="12 1 1960"
DIFF=$(($(caljd.pl) - $(caljd.pl ${PREV_DT)))
echo "Diff = ${DIFF}"
Caljd.pl converts a calendar date into a Julian Day and vice versa. With no arguments, it converts today's date to a Julian Day. Caljd.pl -u gives full usage.
I've attached the caljd.pl script but you can also use the shell/awk based 'caljd.sh' script. The arguments are exactly the same. Search the Forums for 'caljd.sh' and you should find a copy. Version 2.05 is the latest.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 11:41 AM
05-13-2002 11:41 AM
Re: Date Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 02:06 PM
05-13-2002 02:06 PM
Re: Date Question
I'm a little confused. I have been looking at this caljd.sh and I noticed that something appears to be very wrong. There is a function called "JDATE_CAL" that has 11 parameters but is is only called with 3 parameters. I have downloaded the file 3 times but each time the same parameters are missing. The funny thing is that the script seems to work fine. Is this ok?
Please respond, Ryan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 02:13 PM
05-13-2002 02:13 PM
Re: Date Question
Regards, Clay