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

support next/previous, plus/minus and ranges of java.util.Date

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • None
    • None

    Description

      added numerical operator overloading methods for Date so that ranges, next/previous and add/remove are supported for date. e.g.

      x = new Date()
      y = x + 2

      assert x < y
      x++
      y--

      assert x == y
      x += 2
      assert x > y

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: