My requirement is *not* just to convert a date string in "EDT" time
zone to UTC ( if it were this post would not exist at all).
I may get the date string from any time zone and I need to convert
this to UTC. Now to do this, I need to know the offset of the time
zone in question from UTC, the abbreviation such as EDT would not
suffice.
Is there any API that provides me with the offset for a given
abbreviated timezone or is creating a database of such offsets and
using it the only option?
--Deepu
On Apr 29, 9:00 pm, "osmium" <r124c4u...@comcast.netwrote:
"Erik Wikström" wrote:
On 2007-04-29 15:16, osmium wrote:
<deepak_kamat...@yahoo.co.inwrote:
>Which function can I use to convert the date "Mon Oct 16 16:20:06 EDT
2006" to UTC? The problem is I could not find a fucntion that takes
time timezone(in this case "EDT") as an input parameter and gives me
the corresponding UTE.
In the time you have wasted looking for some code, you could have written
the code yourself! Start coding.
Well, almost true but timezons complicates a lot of things when DST is
considered (especially over in the US where every county seems to have it
their own way).
The example he posted showed EDT which has a nice fixed relationship to UTC.
So someone has already solved the problem you allude to.