The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 09:18 AM
how to get the milli seconds from date in sun unix r2b Shell Programming and Scripting 1 03-28-2005 05:26 PM
how to get the milli seconds from date in sun unix r2b SUN Solaris 2 03-28-2005 05:15 PM
Translate date value to normal date and backwards. Frederik UNIX for Advanced & Expert Users 4 12-10-2003 03:44 AM
file creation date including seconds krishna UNIX for Advanced & Expert Users 7 08-26-2002 08:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-22-2006
travian travian is offline
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
  #2 (permalink)  
Old 11-22-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
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 (permalink)  
Old 11-23-2006
travian travian is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
Thanks!

It works just fine
Sponsored Links
Closed Thread

Bookmarks

Tags
perl, perl shift, shift, shift perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0