- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Timestamp problem
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
Discussions
Discussions
Forums
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
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
тАО12-12-2001 12:04 AM
тАО12-12-2001 12:04 AM
But it fail to compile.
I think this is because I use the kernel compiler which has limit function.
So how can I do it in other way?
Thx.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:12 AM
тАО12-12-2001 12:12 AM
Re: Timestamp problem
Download it from :
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.0.1/
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:19 AM
тАО12-12-2001 12:19 AM
Re: Timestamp problem
You can also do this:
# TS=1000000000
echo "0d${TS}=Y"|adb
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:26 AM
тАО12-12-2001 12:26 AM
Re: Timestamp problem
Why I produce no result?
I follow your command already.
# perl -e 'print scalar localtime($ARGV[0]),"\n"' 1008145059
Rgds,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:52 AM
тАО12-12-2001 12:52 AM
Re: Timestamp problem
I guess you're running V4 of perl. The long-winded way for V4 would be to create a perl script:
@dow=("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
@moy=("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
($sec, $min, $hour, $day, $month, $year, $wday)=(localtime($ARGV[0]))[0,1,2,3,4,5,6];
printf ("%s %s %02d %02d:%02d:%02d %04d\n",$dow[$wday],$moy[$month],$day,$hour,$min,$sec,$year+1900);
then run:
# perl yourscript timestamp
Rgds, Robin