HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Julian date format
Operating System - HP-UX
1834116
Members
2445
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-10-2002 06:52 AM
09-10-2002 06:52 AM
I have a user who is in the process of writing a script and needs to convert the date values he has into Julian Date format. Therefore if he enters March 10th he needs to know what the Julian date value would be. Obviously I can get the current value using date +%j but I need to calculate the value based on whatever date is entered, can anybody assist on this matter, is there an esay way of doing this.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 07:01 AM
09-10-2002 07:01 AM
Re: Julian date format
Clay has a neat tool called caljd.sh,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xea948cc5e03fd6118fff0090279cd0f9,00.html
(I found the link by using the "search" capability of the forum and plugging in "julian" for the keyword...)
-- Rod Hills
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xea948cc5e03fd6118fff0090279cd0f9,00.html
(I found the link by using the "search" capability of the forum and plugging in "julian" for the keyword...)
-- Rod Hills
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 07:02 AM
09-10-2002 07:02 AM
Re: Julian date format
Rick,
You need to look into Clay's "date hammer". Try these:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x60e65e938a10d6118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xce87107d277ad611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7d8c107d277ad611abdb0090277a778c,00.html
Pete
You need to look into Clay's "date hammer". Try these:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x60e65e938a10d6118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xce87107d277ad611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7d8c107d277ad611abdb0090277a778c,00.html
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 07:05 AM
09-10-2002 07:05 AM
Solution
Hi Rick:
The julian date returned by date '+%j' is NOT a Julian date. Julian days are used by astronomers to count days sequentially from ~4713BCE. The good news is that the attached script will do julian days and can convert month, day, year to a julian day and will convert a julian day to month, day, year.
Caljd.sh -u will give full usage.
Simple example:
caljd.sh 9 15 2002
will output 2452533
caljd.sh 2452533
will output 09 15 2002
The julian date returned by date '+%j' is NOT a Julian date. Julian days are used by astronomers to count days sequentially from ~4713BCE. The good news is that the attached script will do julian days and can convert month, day, year to a julian day and will convert a julian day to month, day, year.
Caljd.sh -u will give full usage.
Simple example:
caljd.sh 9 15 2002
will output 2452533
caljd.sh 2452533
will output 09 15 2002
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP