Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: file age in seconds using M file test

by jeffa (Bishop)
on Apr 16, 2015 at 15:22 UTC ( [id://1123627]=note: print w/replies, xml ) Need Help??


in reply to file age in seconds using M file test

I like to abstract details like 60*60*24 when i can:

perl -MTime::Seconds -le'print( (-M shift) * ONE_DAY )' file perl -MTime::Seconds -le'print( (-M shift) * ONE_DAY / ONE_MINUTE )' f +ile

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1123627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found