- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- time stamp
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
10-08-2003 02:43 PM
10-08-2003 02:43 PM
time stamp
How to get the yesterday's time stamp using shell(csh better)?
thx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:58 PM
10-08-2003 02:58 PM
Re: time stamp
Have a look at this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=223926
You'll see ways with perl and a C program i have posted.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:15 PM
10-08-2003 03:15 PM
Re: time stamp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:57 PM
10-08-2003 03:57 PM
Re: time stamp
Look into the below thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=222968
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 06:58 AM
10-09-2003 06:58 AM
Re: time stamp
There are a multitude of ways to do this.
i.e
TZ=PST8PDT+24 date "+%b %d %H:%m" | read var
var will be twenty four hours ago now.
In the above format, if you wish to time stamp a file then:
touch -t $var your_file_name
Or -
use $var to name the file with a time stamp extension.
The format of var can be changed in many ways by changing the date "+%" portion.
We are on the US West cost, so you TZ may not be PST etc, but it will work on your TZ setting as well.
And of course there is good old A.Clay's hammer.
Best of luck.
Regards,
dl