[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] using Time::localtime in perl
- Subject: [ale] using Time::localtime in perl
- From: esoteric at 3times25.net (Geoffrey)
- Date: Mon, 04 Feb 2002 14:00:52 -0500
David S. Jackson wrote:
> I'm getting an mtime and an atime value from a stat command. I
> believe this comes back in Epoch format, right?
>
> So when I go
>
> my $info = stat("pathto/file");
> my $access = $info->atime;
> my $created = $info->mtime;
>
> my $realaccess = localtime($access);
> my $realcreate = localtime($created);
Try my $real = scalar locatime($created);
>
> why do $realaccess and $realcreate get values like
>
> Time::tm=ARRAY(0x81b1a78)?
>
> TIA!
>
>
--
Until later: Geoffrey esoteric at 3times25.net
"...the system (Microsoft passport) carries significant risks to users that
are not made adequately clear in the technical documentation available."
- David P. Kormann and Aviel D. Rubin, AT&T Labs - Research
- http://www.avirubin.com/passport.html
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.