권남의 Github 권남의 위키 까먹지말자! 블로그 권남의 Twitter URLEncode/HTMLEscape Java Properties
문서의 이전 판입니다!
// 특정 날짜 지정 객체 생성 Date.parse('yyyy/MM/dd','2012/11/29') // 특정 날짜와 시간 지정 객체 생성 Date.parse('yyyy/MM/dd HH:mm:ss','2012/11/29 18:24:37')
use ( TimeCategory ) { // application on numbers: println 1.minute.from.now println 10.hours.ago // application on dates def someDate = new Date() println someDate - 3.months }