On Sep 5, 4:03 pm, zweb <traderash...@gmail.com> wrote:
> Is there any way to know if for a timezone , on a praticular date
> time, is DST active or not?
> it is required by localize command of pytz. How to find it
> programatically?
>
> >>> est_dt = eastern.localize(loc_dt, is_dst=True)
> >>> edt_dt = eastern.localize(loc_dt, is_dst=False)

I think normally you let pytz figure that out for you. That is_dst
parameter is not required by the localize function. I think it is only
used if you are doing tricky things.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to