commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Davies (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COMPRESS-210) handle zip extra field 0x5455 - Extended Timestamp
Date Tue, 08 Jan 2013 22:02:13 GMT

     [ https://issues.apache.org/jira/browse/COMPRESS-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julius Davies resolved COMPRESS-210.
------------------------------------

       Resolution: Implemented
    Fix Version/s: 1.5
         Assignee: Julius Davies

Implemented!  Whew!

Kinda cute how zip time overflows in 2108 (1980 + 127), while these unix time stamps overflow
in 2106 (32 bits of seconds since Jan 1st 1970).
                
> handle zip extra field 0x5455 - Extended Timestamp
> --------------------------------------------------
>
>                 Key: COMPRESS-210
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-210
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>            Reporter: Julius Davies
>            Assignee: Julius Davies
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: COMPRESS-210.patch
>
>
> From Info Zip's "zip-3.0" source archive (proginfo/extrafld.txt):
>          -Extended Timestamp Extra Field:
>           ==============================
>           The following is the layout of the extended-timestamp extra block.
>           (Last Revision 19970118)
> {noformat}
>           Local-header version:
>           Value         Size        Description
>           -----         ----        -----------
>   (time)  0x5455        Short       tag for this extra block type ("UT")
>           TSize         Short       total data size for this block
>           Flags         Byte        info bits
>           (ModTime)     Long        time of last modification (UTC/GMT)
>           (AcTime)      Long        time of last access (UTC/GMT)
>           (CrTime)      Long        time of original creation (UTC/GMT)
>           Central-header version:
>           Value         Size        Description
>           -----         ----        -----------
>   (time)  0x5455        Short       tag for this extra block type ("UT")
>           TSize         Short       total data size for this block
>           Flags         Byte        info bits (refers to local header!)
>           (ModTime)     Long        time of last modification (UTC/GMT)
> {noformat}
>           The central-header extra field contains the modification time only,
>           or no timestamp at all.  TSize is used to flag its presence or
>           absence.  But note:

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message