Hello there,

At

  http://tzinfo.rubyforge.org/doc/classes/TZInfo/Timezone.html#M000053

it says about the method "Timezone#local_to_utc(local, dst = nil)
{|periods| ...}":

  "If the dst parameter does not resolve the ambiguity, and a block is
specified, it is called."

(The ambiguity being that some local times may correspond to several
UTC times, for example, when switching to daylight savings time, when
there are "two 2 AMs".)

In what circumstances would it happen that dst=true or false is not
enough to "resolve the ambiguity"?

Are there ever more than two elements in the "periods" array that is
passed to the block to pick from?

Thanks,

Stephan

-- 
Stephan Wehner

-> http://stephan.sugarmotor.org (blog and homepage)
-> http://loggingit.com
-> http://www.thrackle.org
-> http://www.buckmaster.ca
-> http://www.trafficlife.com
-> http://stephansmap.org -- http://blog.stephansmap.org
_______________________________________________
TZInfo-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/tzinfo-users

Reply via email to