Off by a day? Without digging deeper, I recall that the arrays returned by localtime() have a month from 0 to 11, inexplicably, but a day from 1 to ~31. Whether that's what you're hitting, I thought I'd take this opportunity to gripe about such fencepost errors.
--
[ e d @ h a l l e y . c c ]
In reply to Re: Converting datetime string to valid localtime value (seconds)
by halley
in thread Converting datetime string to valid localtime value (seconds)
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |