Anthony R. J. Ball schreef:
> I guess maybe is_dst_change might be necessary in that case.

You can make such a function even more useful if you rename it
"offset_change": returns the offset change at that datetime in seconds;
returns 0 if no dst change (obviously).

That would give a reasonably simple way to find the start of the next
DST period, as requested by Jim Bacon:

  do {
     $dt = $tz->next_offset_transition($dt)
  } until ($tz->offset_change($dt) == 3600); # or "> 0" or whatever

Eugene

Reply via email to