/ Published in: Groovy
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
return result; } } def result; result = aDate2 - aDate1; } return result; } } def result; result = aDate + aMin.minutes + aSec.seconds; } return result; } return result; } println '' println t2 println t1 println '---' t2 = timeIncMin( t1, 30 ) println "t1: $t1 t2: $t2" println delta println "" println "t1: $t1 t2: $t2" delta = timeDiff( t2, t1 ); println delta delta = timeDiffAbs( t2, t1 ); println delta