Created
October 18, 2016 19:45
-
-
Save iskigow/d85114f61bf8212dd572a2b8018cdf1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group="joda-time", module="joda-time", version="2.0") | |
import org.joda.time.LocalDate | |
LocalDate.metaClass.next << { -> delegate.plusDays(1) } | |
def ini = new LocalDate(2012, 3, 1) | |
def fim = new LocalDate(2012, 3, 5) | |
for (dia in ini..fim) { | |
println "${dia.toString('dd-MM-yyyy')}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment