Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4195

DGM getAt method for Calendar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3, 1.8-beta-1
    • groovy-jdk
    • None

    Description

      DGM provides a method for array-like indexing on Dates, e.g.:

      assert d[MONTH] == FEBRUARY
      assert d[DAY_OF_WEEK] == SATURDAY
      

      The same facilities should be provided for Calendar instances.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: