[Python-Dev] ready-made timezones for the datetime module

"Martin v. Löwis" martin at v.loewis.de
Sun Nov 12 20:14:47 CET 2006


Fredrik Lundh schrieb:
> I guess I should remember, but what's the rationale for not including 
> even a single concrete "tzinfo" implementation in the standard library?
> 
> not even a UTC class?
> 
> or am I missing something?

If you are asking for a time-zone database, such as pytz
(http://sourceforge.net/projects/pytz/), then I think there
are two reasons for why no such code is included:

a) such a database is not available in standard C, or even
   in POSIX. So it is not possible to provide this functionality
   by wrapping a widely-available library.

b) no code to provide such functionality has been contributed.

Normally, b) would be the bigger issue. In this case, I think
there might also be resistance to including a large database
(as usual when inclusion of some database is proposed).

Regards,
Martin


More information about the Python-Dev mailing list