[TZInfo-users] TzInfo timezone base question

Mark Van De Vyver mvyver at gmail.com
Wed Feb 6 03:36:49 EST 2008

Thanks for the work that has gone into making tzinfo available, and
for making it freely available!

I'm trying to figure out a way to obtain a Time instance that has a
'specific' timezone.  The twist is I just start with a time string.

For example

require 'tzinfo'

# Returns my time zone (GMT +11)
Time.parse("09:30").iso8601 # "2008-02-06T09:30:00+11:00"

What I'd like to be able to do is something like:

Time.parse("09:30", other_tz).iso8601

which would return the deired timezone, say:


Is there a way to do this using tzinfo?

Appreciate any suggestions.


More information about the TZInfo-users mailing list