Bug 22963 - org.apache.poi.hpsf.SummaryInformation.getEditTime() should not return Date
Summary: org.apache.poi.hpsf.SummaryInformation.getEditTime() should not return Date
Status: CLOSED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HPSF (show other bugs)
Version: 2.0-pre3
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-06 23:54 UTC by Andrew Scherpbier
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
Document with edit time of 6 minutes (19.00 KB, application/msword)
2003-09-07 21:00 UTC, Andrew Scherpbier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Scherpbier 2003-09-06 23:54:45 UTC
AFAIK, the edit time in an office document is the amount of time spent editing
the document, not an absolute date.
org.apache.poi.hpsf.SummaryInformation.getEditTime() should probably return a
long that indicates the number of milliseconds was spent editing.
Comment 1 Rainer Klute 2003-09-07 20:43:48 UTC
I see. Is this documented somewhere?
Comment 2 Andrew Scherpbier 2003-09-07 20:59:50 UTC
It is actually more by reasoning.  Whenever I look at an office document with
the POIBrowser, I see edit times in the 1600's.  Since I know microsoft's epoch
is around that time, I figured that the field was simply mis-interpreted.
I'll attach a sample word doc that msword reports (File | Properties) as having
an edit time of 6 minutes and POIBrowser reports it as having an edit time of
"Sun Dec 31 16:03:00 PST 1600".
Comment 3 Andrew Scherpbier 2003-09-07 21:00:50 UTC
Created attachment 8091 [details]
Document with edit time of 6 minutes
Comment 4 Rainer Klute 2003-09-16 07:53:57 UTC
Fixed in the CVS repository's HEAD.