I don't think so...
AFAICR, Job in Saudi Arabia is still the Champ ;>)
- Kirti
> -Original Message-
> From: Mohan, Ross [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 4:36 PM
> To: Multiple recipients of list ORACLE-L
> Subject: OT RE: Year of Un
Title: RE: Year of Unix file
Maybe
it's just me, and it could be because I am not following this thread at all,
but.
Is
this the list's longest running thread to date? lol.
no
offense meant!
-
Ross
-Original Message-From: Brian MacLean
[mailto:[EMAIL
Title: RE: Year of Unix file
save the following as fstat.c, compile it with "cc -o fstat fstat.c", then run it as "fstat myfile"
#include
#include
#include
#include
#include
int rtn;
struct stat buf_st;
struct tm *tm_st;
main( argc, argv, envp)
int argc;
Well,
Of Course... :)
- Kirti Deshpande
Verizon Information Services
http://www.superpages.com
> -Original Message-
> From: yong huang [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, July 29, 2001 3:46 PM
> To: Multiple recipients of list ORACLE-L
> Subject: R
How about using stat(2)?
$ ls -l proc.txt
-rw-rw-r-- 1 oracle dba 3414 Jul 1 00:10 proc.txt
$ perl -e '$a=(stat "proc.txt")[9]; print int $a/31536000+1970,"\n"'
2001
There's a better way to convert seconds since epoch to year but for now I just
divide it by number of seconds in a ye
Is this anything like the year of the cat?
Jared
prasad maganti
If you look in the man pages on thels command it says something
about the LC_TIME environment variable being used to control the date
string. You might investigate that .
-Original Message-
Sent: Friday, July 27, 2001 7:40 AM
To: Multiple recipients of list ORACLE-L
> when
; To: Multiple recipients of list ORACLE-L
> Subject: Re: Year of Unix file
>
>
> > when i list the unix file (solaris), with ls -lt
> > command , i am able to see the time, month, date that
> > is created.
> >
> > is there any way to see the year that i
> when i list the unix file (solaris), with ls -lt
> command , i am able to see the time, month, date that
> is created.
>
> is there any way to see the year that is created.
The 8th field of "ls -lt" indicates the hour if the file was created in
the current year, otherwise it indicates the yea