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
// Compiled by Igor Shults | |
// Last Updated: July 23, 2020 | |
GRAILS GROOVY SOURCE | |
4.1.0 2.5.14 https://github.com/grails/grails-core/blob/v4.1.0/gradle.properties | |
4.0.4 2.5.6 | |
4.0.3 2.5.6 | |
4.0.2 2.5.6 | |
4.0.1 2.5.6 | |
4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle |
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
Groovy also has a Time Category class which gives you DSL style syntax for manipulating dates. Here is an example: | |
import org.codehaus.groovy.runtime.TimeCategory | |
now = new Date() | |
println now | |
use(TimeCategory) { | |
footballPractice = now + 1.week - 4.days + 2.hours - 3.seconds | |
} | |
println footballPractice | |
which will produce output like this: |