Hi, Le Mon, 28 Jan 2013 11:01:05 +0100, Lennart Regebro <rege...@gmail.com> a écrit : > This function takes a name string that must be a string specifying a > valid zoneinfo time zone, i.e. "US/Eastern", "Europe/Warsaw" or > "Etc/GMT".
Will non-ambiguous shorthands such as "Warsaw" and "GMT" be accepted? > The ``is_dst`` parameter can be ``False`` (default), ``True``, or > ``None``. > > ``False`` will specify that the given datetime should be interpreted > as not happening during daylight savings time, i.e. that the time > specified is after the change from DST. > > ``True`` will specify that the given datetime should be interpreted > as happening during daylight savings time, i.e. that the time > specified is before the change from DST. > > ``None`` will raise an ``AmbiguousTimeError`` exception if the time > specified was during a DST change over. It will also raise a > ``NonExistentTimeError`` if a time is specified during the "missing > time" in a change to DST. NonExistentTimeError can also be raised for is_dst=True and is_dst=False, no? Or am I misunderstanding the semantics? Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com