arie.ha...@gmail.com wrote:
>Our project requres getting time-zone offset for the given time-zone
>id at the current time.

You can speed things up a bit by using the timezone modules in isolation.
You can construct a fake DateTime class, which only provides the methods
->utc_rd_as_seconds and ->utc_year.  Use that class to construct an
object representing the current time.  Then call ->offset_for_datetime
on a timezone object, passing in your fake DateTime.

-zefram

Reply via email to