Skip to content

Commit 5afd441

Browse files
committed
Fixed spare notes into emrged note, also added explanation about local
timezone
1 parent aa6bb16 commit 5afd441

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Doc/library/zipfile.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -821,12 +821,6 @@ Instances have the following methods and attributes:
821821
tuple of six values representing the "last [modified] file time" and "last [modified] file date"
822822
fields from the ZIP file's central directory.
823823

824-
.. note::
825-
826-
The ZIP format supports multiple timestamp fields in different locations
827-
(central directory, extra fields for NTFS/UNIX systems, etc.). This attribute
828-
specifically returns the timestamp from the central directory.
829-
830824
The tuple contains:
831825

832826
+-------+--------------------------+
@@ -847,10 +841,14 @@ Instances have the following methods and attributes:
847841

848842
.. note::
849843

850-
The central directory timestamp format in ZIP files does not support
851-
timestamps before 1980. While some extra field formats (such as UNIX
852-
timestamps) can represent earlier dates, this attribute only returns
853-
the central directory timestamp.
844+
The ZIP format supports multiple timestamp fields in different locations
845+
(central directory, extra fields for NTFS/UNIX systems, etc.). This attribute
846+
specifically returns the timestamp from the central directory. The central
847+
directory timestamp format in ZIP files does not support timestamps before
848+
1980. While some extra field formats (such as UNIX timestamps) can represent
849+
earlier dates, this attribute only returns the central directory timestamp.
850+
851+
CPython interprets this timestamp as representing local time, not UTC.
854852

855853

856854
.. attribute:: ZipInfo.compress_type

0 commit comments

Comments
 (0)