in reply to Timezone Conversion
Howdy there, and welcome to the Monastery!
There's any number of modules for parsing dates/times on CPAN - Time::ParseDate comes to mind -, and once you've parsed a time, converting it to UTC is easy. That said, maybe I'm missing the obvious, but how do you expect to succeed when you don't know the time zone? 5pm Mountain isn't the same as 5pm Eastern, and if you're only told something happened at "5pm" without a timezone, you cannot say when it actually happened.
That said, your example - "11:50:45.242 EDT OCT 27 2015" - gives a time zone, EDT (Eastern Daylight Time). Are you able to rely on that being correct? Because if so, the problem's fairly trivial again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Timezone Conversion
by choroba (Cardinal) on Oct 27, 2015 at 22:46 UTC | |
by marinersk (Priest) on Oct 27, 2015 at 23:12 UTC | |
by MidLifeXis (Monsignor) on Oct 28, 2015 at 13:43 UTC | |
by marinersk (Priest) on Nov 16, 2015 at 22:01 UTC | |
by oiskuu (Hermit) on Nov 16, 2015 at 23:16 UTC | |
by stevieb (Canon) on Oct 27, 2015 at 23:18 UTC | |
by mhooper (Novice) on Oct 29, 2015 at 13:31 UTC | |
by choroba (Cardinal) on Oct 29, 2015 at 13:39 UTC | |
by mhooper (Novice) on Oct 29, 2015 at 15:05 UTC | |
by mhooper (Novice) on Oct 29, 2015 at 15:50 UTC | |
|