gpt4 book ai didi

python - 如何解释 ZipInfo.date_time 值

转载 作者:行者123 更新时间:2023-11-28 16:37:07 26 4
gpt4 key购买 nike

关于 ZipInfo objects 的文档对此并没有真正的帮助。这个 date_time 值是多少?是 UTC 时间还是本地机器时间?

最佳答案

好的,我想我刚刚找到了答案 here :

Inside zip files, dates and times are stored in local time in 16 bits, not UTC (Coordinated Universal Time/Temps Universel Coordonné) as is conventional, using an ancient MS DOS format. Bit 0 is the least signifiant bit. The format is little-endian. There was not room in 16 bit to accurately represent time even to the second, so the seconds field contains the seconds divided by two, giving accuracy only to the even second.

关于python - 如何解释 ZipInfo.date_time 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24578625/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com