incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Hopf (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODFTOOLKIT-157) Formatting a date according to an OdfNumberDateStyle
Date Wed, 19 Dec 2012 05:31:14 GMT

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

Florian Hopf updated ODFTOOLKIT-157:
------------------------------------

    Fix Version/s:     (was: --)
    
> Formatting a date according to an OdfNumberDateStyle
> ----------------------------------------------------
>
>                 Key: ODFTOOLKIT-157
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-157
>             Project: ODF Toolkit
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: odfdom-0.8.6
>         Environment: Operating System: All
> Platform: PC
>            Reporter: pallart
>            Assignee: Ying Chun Guo
>            Priority: Minor
>         Attachments: ASF.LICENSE.NOT.GRANTED--patch-OdfNumberDateStyle-formatOut.diff
>
>
> Created an attachment (id=355)
> Diff file for the method OdfNumberDateStyle.getFormatOut.
> Hi,
> the OdfNumberDateStyle class has a method getFormat() which returns a string which can
be used to parse a date according to its specifications.
> I needed exactly the reverse feature: a method which return a string which will allow
to format a date according to the specifications. I've written the getFormatOut() method which
does that.
> Typical usage:
>   OdfNumberDateStyle nds = ...
>   Date aDate = ...
>   String formatOut = nds.getFormatOut();
>   String formattedDate = String.format(formatOut, aDate);
> It's the first time I uploaded a patch. I hope it is right.
> If you like it, I will upload do the same for OdfNumberCurrencyStyle and others.
> Regards,
> Philippe.

--
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