poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48924] New: [Patch] Added a getDate method to DateAndTime that returns Calendar
Date Tue, 16 Mar 2010 22:05:48 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48924

           Summary: [Patch] Added a getDate method to DateAndTime that
                    returns Calendar
           Product: POI
           Version: 3.7-dev
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: ryanlauck@hotmail.com


Currently there is no easy way to get any useful information out of
org.apache.poi.hwpf.usermodel.DateAndTime, so I added a added a getDate()
method that returns the date and time as a java.util.Calendar.  I am already
using this in production code and thought it would be useful to others.

Note: it currently uses Calendar.getInstance() to get the default time-zone and
localization - I don't know if the word binary format stores any localization
data but if it does this code may need a further enhancement to initialize the
Calendar with said data.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message