[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] stat function



At 16.09 -0400 1999.07.05, Graeme Kennedy wrote:
>Hi:
>
>The stat(<filename>) command returns an array of values for the file in
>question, one of which is the date of last modification. However, the date
>is encoded somehow, and I can't figure out how to convert it into a
>user-readable value.
>
>The value I get is: "931198265".

As the docs say, it is the "last modify time since the epoch".  i.e., this
is the number of seconds that have passed between the epoch (which in
MacPerl / Mac OS is Jan 1 1904 00:00 local time) and the last time it was
modified.  You can convert it into something useful using the localtime()
function.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org