![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| date and time to display on the terminal | cesarNZ | Shell Programming and Scripting | 11 | 09-05-2007 04:19 PM |
| a simple way of converting a date in seconds to normal date | travian | HP-UX | 2 | 11-23-2006 08:25 AM |
| how to display time in minutes n seconds... | santy | Shell Programming and Scripting | 1 | 08-23-2006 07:18 AM |
| display date n Time | SsRrIi | SUN Solaris | 1 | 03-16-2006 01:48 AM |
| Script to display last login date/time? | ryaneverett5 | UNIX for Dummies Questions & Answers | 3 | 12-06-2001 01:21 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Unable to display the date-time in seconds on AIX
Hi,
In unix the command "date +%s" displays the date-time in seconds since â00:00:00 1970-01-01 UTCâ (a GNU extension) when executed on unix: -sh-2.05b$ date +%s 1152092690 I tried with all the format control output but unable to display the date-time in seconds i,e as in unix format. Can anybody tell me how to display date-time in seconds on AIX or give me the equivalent command as in unix. Thanks, Haroon |
| Forum Sponsor | ||
|
|
|
|||
|
Hi,
I have tried with all options using man date, but i am not able to display the time on the screen in desired format. I require date to be displayed in the given format below: 1145470369 - i,e Specifies the time (in seconds) since the epoch (00:00:00 GMT, January 1, 1970). Thanks, Haroon |
|
|||
|
Are some alternate commands available
Hi,
The command date +%s is not available for AIX 5.1, but available in AIX 5.3. CAn any one plese tell me some combination of commands that will do the job of date +%s on AIX 5.1. Its an urgent issue please help me. Thanks, Haroon |