in reply to Re: how do i get yesterday's date using localtime()?
in thread how do i get yesterday's date using localtime()?

For a discourse (with code) on why subtracting 86400 is the wrong way to go about this in general (for two one-hour windows each year), see On the peril of discounting intuition.

The punchline is "daylight savings time".

If you're working backwards from a time within normal business hours, you should be O.K.

  • Comment on (dws)Re: Re: how do i get yesterday's date using localtime()?