I'm working on something with an international target, hence timezones become an issue (sigh).
So my question is this: What is the best way to save/retrieve datetime's?
I was planning on using a unix timestamp, since it's the easiest to work with (and by definiition time() will always return in GMT).
How to get a timestamp (GMT) based on input of :"1/25/2005 3:30 PM Offset -5" (not to that formatting, but with that data)
How to correctly adjust the timestamp before feeding it into date() when displaying in a particular timezone.
This way, I can take a time in NYC, and show what time it would be in PST. Or I can take a time in NYC, and display it in NYC.
Lucky for me, until now the only time I needed such functionality, it came built in. This is the first time I had to build it, and I needed it.
What ever happened to that Swatch Internet Time[/url? :p