APM: Unix time help

David Humphreys dave at thedevilneversleeps.com
Tue Sep 24 14:03:27 CDT 2002


Date::Manip rocks, too.

It'll handle date addition and subtraction, and produce whatever kind of 
format you want. It'll even convert from loose dates like "last Tuesday."


--On Tuesday, September 24, 2002 1:16 PM -0500 Wayne Walker 
<wwalker at bybent.com> wrote:

> 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
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin



=============================================
dave humphreys * dave at thedevilneversleeps.com

"Every extra buck has a meaning all its own."
- Thelma Ritter in _Pickup on South Street_, 1953




More information about the Austin mailing list