Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: RE: RE: From the good book

by awwaiid (Friar)
on Oct 06, 2000 at 11:37 UTC ( #35548=note: print w/replies, xml ) Need Help??


in reply to RE: RE: From the good book
in thread From the good book

oops. thanks.

Actually I was thinking that $last_programmed was unix-time for when one last programmed. Soif you subtract 3 days (60*60*24*3 seconds) from the current time, you get three days ago. If three days ago is more than $last_programmed, then it is time to undef self.

But I did forget the 60

If you wanted to consider $last_programmed as the amount of time since you last programmed (in seconds) however, than you don't have to subtract 3 days from the current time, you can just do a direct comparison to three days.

Okay, I'll go away now.


--awwaiid

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-10-16 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?