FrodeSolheim / python-lhafile

LHA archive support for Python
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

minute was calculated wrong #9

Closed RSabet closed 3 years ago

RSabet commented 5 years ago

i think the minute is not calculated as described in the lha-format.

 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
|<-------- year ------->|<- month ->|<-- day -->|

 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
|<--- hour --->|<---- minute --->|<- second/2 ->|
FrodeSolheim commented 3 years ago

I agree with your assessment. I haven't checked against real-world LHAs and extracted timestamps on e.g. Amiga, but I assume you looked into this because the extracted time stamp was incorrect in the first place.