Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Getting previous dates from the current date

by Smylers (Pilgrim)
on Mar 30, 2005 at 08:42 UTC ( #443373=note: print w/replies, xml ) Need Help??


in reply to Re^2: Getting previous dates from the current date
in thread Getting previous dates from the current date

To counter act not accounting for DST, determining the first weekend and april and last weekend in october will allow a user to adjust for this.

Well it would do, so long as you're in a place that uses those dates. But it would still be wrong in the EU, for example, where the clocks go back on the last weekend of March, not the first one in April.

And presumably it'd be even more wrong in the southern hemisphere, where I'm guessing the clocks change in the opposite direction?

Now you could do lots of research and then allow for all these things, or ...

Or you can use a module.

Yes. Use a module. Modules are good!

Smylers

  • Comment on Re^3: Getting previous dates from the current date

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://443373]
help
Chatterbox?
[atcroft]: Discipulus: I looked back at your note about my Padre question from a while back, and it made me look again... as a result, I found what I was missing and was able to make the change. Thank you!

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-02-24 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (311 votes). Check out past polls.

    Notices?