Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 05-30-2007, 10:32 AM   #1
Registered: Mar 2007
Distribution: Whatever Works
Posts: 44

Rep: Reputation: 16
Epoch Converstion

Hi all... I am trying to get a list of all users and thier last login times. I am using the "lsuser -a time_last_login ALL" command. The only problem I am having is that the date is in Epoch seconds. Can anyone point me in the direction to convert Epoch Seconds to a readable date format using Perl or Ksh?
Old 05-30-2007, 11:46 AM   #2
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
or in php:

<?php echo date('r',1180543587); ?>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP + Win32 ... pre epoch age? wh33t Programming 6 12-14-2006 03:16 AM
PHP Time before Unix Epoch? wh33t Programming 2 08-29-2006 01:32 PM
Convert CCYYMMDDhhmmss to Unix Epoch. unreal128 Linux - General 1 07-22-2006 07:06 PM
Epoch time the other way! michedlp Programming 0 04-25-2004 03:51 AM
The End of the UNIX Epoch oulevon Programming 10 11-22-2003 02:42 AM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration