![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| timestamps | chriss_58 | Shell Programming and Scripting | 1 | 05-30-2008 02:12 AM |
| Difference between two timestamps | raman1605 | SUN Solaris | 8 | 08-05-2007 04:54 PM |
| Find command to get the timestamps | nguda | Shell Programming and Scripting | 8 | 03-24-2003 09:35 AM |
| Caluculate time between 2 unix timestamps? | bozzhawg | UNIX for Advanced & Expert Users | 1 | 12-13-2001 11:37 AM |
| DiffElapsed time between unix timestamps help needed... | bozzhawg | UNIX for Dummies Questions & Answers | 1 | 12-12-2001 08:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can someone help me with a Unix or perl script to convert the unix timestamps to human readable format?
Any help will be highly appreciated... |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
what exactly you are looking for.Please elaborate!!!
|
|
#3
|
|||
|
|||
|
Say I am having a timestamp 1140444334642 which is an epoch. I want this to be converted to something like "02/20/2006 19:35:34"
|
|
#4
|
||||
|
||||
|
Quote:
What machine are you on ? From dictionary.com, Code:
Under most Unix versions the epoch is 1970-01-01 00:00:00 GMT; under VMS, it's 1858-11-17 00:00:00 (the base date of the US Naval Observatory's ephemerides); on a Macintosh, it's 1904-01-01 00:00:00. Code:
$ date -d '1970-01-01 UTC 1140444334642 seconds' +"%Y-%m-%d %T" 1906-02-01 03:38:26 |
||||
| Google The UNIX and Linux Forums |