[ale] using Time::localtime in perl

David S. Jackson deepbsd at earthlink.net
Mon Feb 4 12:37:01 EST 2002


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);

why do $realaccess and $realcreate get values like

 	Time::tm=ARRAY(0x81b1a78)?  

TIA!

-- 
David S. Jackson                        dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"But I don't like Spam!!!!"

---
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