14 Apr
2021
14 Apr
'21
11:40 a.m.
On Wed, 2021-04-14 at 18:06 +0000, j.wuttke@fz-juelich.de wrote:
The gzip specification [1] makes clear that the mtime field is always present. The time is in Unix format, i.e., seconds since 00:00:00 GMT, Jan. 1, 1970. MTIME = 0 means no time stamp is available. Hence no need for a new constant NO_TIMESTAMP.
So this is primarily a documentation problem [2]. For this, I will create a pull request to gzip.py.
I think having an extra constant (equal to 0) wouldn't hurt and could make the code a bit more explicit. -- Best regards, Michał Górny