Type Params | Return Type | Name and description |
---|---|---|
|
int |
currentYear() Returns the current year as integer @return |
|
int |
daysInMonth(int month, java.lang.Integer year = null) Returns the number of days within specified month of the year |
|
int |
intersectingDays(java.util.Date start1, java.util.Date end1, java.util.Date start2, java.util.Date end2) Returns the number of days of overlap (intersect) within two provided date periods |
null |
static void |
main(java.lang.String[] args) Implicit main method for Groovy Scripts |
|
java.util.Date |
maxdate(java.util.Date date1, java.util.Date date2) Returns the greater of two provided dates |
|
java.util.Date |
mindate(java.util.Date date1, java.util.Date date2) Returns the lesser of two provided dates |
Methods inherited from class | Name |
---|---|
class groovy.lang.Script |
groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#println(), groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#run(), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(long), groovy.lang.Script#wait(), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Returns the current year as integer
Returns the number of days within specified month of the year
month
- Number of month in year - ie, Jan = 1, Dec = 12.year
- The year of occurrence, because its not always the same every year. If not provided or given null, defaults to current yearReturns the number of days of overlap (intersect) within two provided date periods
start1
- Start date of first periodend1
- End date of first periodstart2
- Start date of second periodend2
- End date of second periodImplicit main method for Groovy Scripts
Returns the greater of two provided dates
Returns the lesser of two provided dates