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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
epoch time ali560045 Shell Programming and Scripting 3 06-02-2008 05:41 AM
EPOCH to real time? TheEngineer UNIX for Advanced & Expert Users 5 07-18-2006 09:30 AM
Epoch time 12yearold UNIX for Advanced & Expert Users 2 07-14-2006 04:11 PM
Epoch time 12yearold Shell Programming and Scripting 1 07-14-2006 12:57 PM
Epoch problem vsomanchi High Level Programming 2 06-28-2001 12:53 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2002
Bodhi Bodhi is offline
Registered User
  
 

Join Date: Aug 2002
Location: Chicago,Illinois
Posts: 10
Question Epoch

Hi all,
i am trying to figure out how i can get a 'Nix box to display
epoch time. Is there a command to do this? Do I know what I am talking about or am I an Idiot? Wait dont answer that last question!!!!! Thanx in advance!!!
  #2 (permalink)  
Old 08-27-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
I don't believe there is a command to do it but in Perl or C (or C++) you could probably write something to figure it out.

Perl's description of it's time function:
Returns the number of non-leap seconds since whatever time the system considers to be the epoch (that's 00:00:00, January 1, 1904 for MacOS, and 00:00:00 UTC, January 1, 1970 for most other systems). Suitable for feeding to gmtime and localtime

Possible that Perderabo's date script may show it (search for datecalc on this site ).
  #3 (permalink)  
Old 08-27-2002
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
I found several references saying typing the following at the prompt would work, but it doesn't on my system.. worth a try on yours though (not documented in the man pages):

date +%s

----------------

Try this too:

perl -e 'print time, "\n" '

Last edited by oombera; 08-27-2002 at 10:58 AM..
Closed Thread

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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