Probably related to Name: Compression-SeanDeNigris.97 Author: SeanDeNigris Time: 21 May 2012, 4:19:27.939 pm UUID: 4936c6ef-dc79-4a72-a4c7-13b8a6840d04 Ancestors: Compression-MarcusDenker.95 * Fix conversion to/from DateAndTime and DOS timestamps. DOS format per http://blogs.msdn.com/b/oldnewthing/archive/2003/09/05/54806.aspx and http://mindprod.com/jgloss/zip.html * Update tests, removing #testAsDosTimeIndependentOfTimezone (they are not independent; DOS timestamps are in local time) * Renamed DateAndTime>>asDosTime to #asDosTimestamp (it is not a time, but an encoded date/time) * Renamed DateAndTime class>>fromDosSeconds: to #fromDosTimestamp (it is not a number of seconds, like a UNIX or Squeak date/time) * Updated ZipArchiveMember to use new method names On Jun 10, 2012, at 11:03 PM, Stéphane Ducasse wrote:
Sean could you have a look?
Because when I tried to click on Balloon-CamilloBruni.85.mcz in PharoInbox
I get a month as 13
asDateFromZip "See Date>>zipped comment"
| yearsSinceDosEpoch month day year | yearsSinceDosEpoch := self >> 9. "High 7 bits" month := self >> 5 & 2r1111. "Middle 4 bits" day := self & 2r11111. "Low 5 bits" year := DateAndTime dosEpoch year + yearsSinceDosEpoch. ^ Date year: year month: month day: day.