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

Henri Yandell closed LANG-632.
------------------------------

    Fix Version/s: 3.0
       Resolution: Fixed

Added. Thanks for the idea.

svn ci -m "Adding toCalendar method per LANG-632"
Sending        src/main/java/org/apache/commons/lang3/time/DateUtils.java
Sending        src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
Transmitting file data ..
Committed revision 963601.


> provide a date2calendar convenience method
> ------------------------------------------
>
>                 Key: LANG-632
>                 URL: https://issues.apache.org/jira/browse/LANG-632
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>    Affects Versions: 2.5
>            Reporter: Sebastian Dietrich
>            Priority: Minor
>             Fix For: 3.0
>
>
> please provide a date2calendar conversion convenience method like:
>       public static Calendar date2Calendar(Date date) {
>               Calendar date2Calendar = Calendar.getInstance();
>               date2Calendar.setTime(date);
>               return date2Calendar;
>       }
> This is especially useful in constructors where super() must be the first 
> call, or whenever people want to reduce reoccurring code

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to