You're looking at the whole thing a bit backwards. First off, you're feading in "local" times into both timelocal and timegm. That is, 15:17:29 local time for the local time zone, and 15:17:29 local time for the GMT time zone. And the former is definitely later than the latter since your time zone is later than GMT - you get to 15:17:29 much later than GMT does.
Then you also have to take into account that the conversion to epoch is always using GMT time zone for the epoch. So the numbers are relative to the GMT time zone's beginning time.
Hope that helps.
In reply to Re: Parsing Dates
by Tanktalus
in thread Parsing Dates
by njcodewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |