in reply to Re^2: getting system time
in thread getting system time

Try not importing stuff from the module, i.e.

use Time::localtime (); # note the parentheses

and then call the function fully qualified

$dateModified = Time::localtime::ctime($attrs->mtime);

(Or import only ctime, which should not clash.)