Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-632

provide a date2calendar convenience method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 3.0
    • lang.time.*
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebastian.dietrich@gmx.at Sebastian Dietrich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: