Browse
Hewlett Packard Enterprise Community
Sign In
Help
Community Home
>
Servers and Operating Systems
>
Operating Systems
>
Operating System - HP-UX
>
Re: HP-UX 11 date
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Printer Friendly Page
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
HP-UX 11 date
bursucu
New Member
Mark as New
Bookmark
Subscribe
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
10-22-2003
08:17 PM
10-22-2003
08:17 PM
HP-UX 11 date
Hello,
how do I calculate the yesterday date as so when month is changing not to have day 30 or 29 or 27?
thanks
All forum topics
Previous Topic
Next Topic
4 REPLIES
4
Bernhard Mueller
Honored Contributor
Mark as New
Bookmark
Subscribe
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
10-22-2003
08:31 PM
10-22-2003
08:31 PM
Re: HP-UX 11 date
Hi,
whatever you want to accomplish, guess you may find help there.
Clay's Script allows you calculate Julian date which is suitable for a "daily sequencing" purpose (which I assume is what you want).
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a8d93e260b0d611abdb0090277a778c,00.html&qt=datehammer&hit=3
Regards,
Bernhard
aparna challagulla
Valued Contributor
Mark as New
Bookmark
Subscribe
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
10-22-2003
08:32 PM
10-22-2003
08:32 PM
Re: HP-UX 11 date
hi
perl -le 'print scalar localtime time -86400'
HTH
aparna
If you don't have time to do it right you must have time to do it over
Alan Turner
Regular Advisor
Mark as New
Bookmark
Subscribe
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
10-22-2003
08:59 PM
10-22-2003
08:59 PM
Re: HP-UX 11 date
Adapted from the thread on running cron job at the end of the month:
TZ=XYZ+24 date
(it's the +24 which is important, saying that the local time is in a zone 24 hours ahead of GMT.)
Highlighted
bursucu
New Member
Mark as New
Bookmark
Subscribe
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
10-22-2003
09:27 PM
10-22-2003
09:27 PM
Re: HP-UX 11 date
Thank You very much it worked fine.