[ale] using Time::localtime in perl

Geoffrey esoteric at 3times25.net
Mon Feb 4 14:00:52 EST 2002




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.






More information about the Ale mailing list