![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Thanks!
It works just fine |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|