Setting timestamp format in unix -
07-02-2007
, 07:51 AM
At the command level the ls -l command uses the following timestamp
format:
rw-r--r-- 1 bfoste nps 545 Jun 29 07:56 services
-rw-r--r-- 1 bfoste nps 7 Jul 2 13:40 x
but a ksh script running in the same account produces the following
timestamp format when running ls -l:
drwxrwxr-x 3 ebmitadm ebmitrn2 96 2006-11-09 00:55 bin
drwxrwxr-x 5 ebmitadm ebmitrn2 1024 2007-06-29 07:32 data
drwxr-xr-x 3 ebmitrn2 ebmitrn2 96 2006-11-09 01:41 EBM_CTL
I presume that the difference is due to an env. variable setting, in
particular vble LC_TIME but when I tested this using all values
produced by running locale -a I had no success.
Any suggestions please?
Thanks,
Barry |