The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to display the date-time in seconds on AIX me_haroon AIX 6 07-11-2006 06:18 AM
how to get the milli seconds from date in sun unix r2b Shell Programming and Scripting 1 03-28-2005 02:26 PM
how to get the milli seconds from date in sun unix r2b SUN Solaris 2 03-28-2005 02:15 PM
Translate date value to normal date and backwards. Frederik UNIX for Advanced & Expert Users 4 12-10-2003 12:44 AM
file creation date including seconds krishna UNIX for Advanced & Expert Users 7 08-26-2002 05:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-22-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
a simple way of converting a date in seconds to normal date

Hi all!

I'm working on a HPUX system, and I was wondering if there is a simple way to convert a date from seconds (since 1970) to a normal date.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 11-22-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,610
Pretty easy with perl:
$ perl -e 'print scalar localtime(shift),"\n"' 1164876000
Thu Nov 30 03:40:00 2006

Even if you have not installed a recent version of perl, HP-UX should have an old version in /usr/contrib/bin that is good enough for this.
Reply With Quote
  #3  
Old 11-23-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
Thanks!

It works just fine
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0