APM: Unix time help

Wayne Walker wwalker at bybent.com
Tue Sep 24 13:16:37 CDT 2002


This hsould do it but too swamped to test...

$age_in_days = -M $file;

$then = time() - (86400 * $age_in_days);

On Tue, Sep 24, 2002 at 12:37:39PM -0500, Goldilox wrote:
> I want to convert -M $file output to Unix time (or -M's equivalent seconds so I
> can create its corresponding Unix time).
> 
> I also want to convert dates to their corresponding Unix time.
> 
> Anyone know of a module or code snippet(s)? Thanks
> 
> Rhett
> 
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin

-- 

Wayne Walker



More information about the Austin mailing list