Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Prior Date

by djp (Hermit)
on Oct 03, 2007 at 05:52 UTC ( #642308=note: print w/replies, xml ) Need Help??


in reply to Prior Date

++ to the suggestions above. The first rule about calculatiing dates is: Don't Do It. It's complex, and someone else has done all the work for you. Use the OS (e.g. via POSIX::mktime, which normalizes the supplied date info), or someone else's work via a CPAN module.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642308]
help
Chatterbox?
[ambrus]: though it's very C-like (serious use of varargs so easy to pass the wrong type), and there are some minor problems (busy loop because it doesn't use the same timer as your event loop, so you have to artificially delay timer callbacks by a small amount).

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2016-12-07 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.