Skip to content

Instantly share code, notes, and snippets.

@fumokmm
Created September 5, 2013 14:33
Show Gist options
  • Save fumokmm/6450938 to your computer and use it in GitHub Desktop.
Save fumokmm/6450938 to your computer and use it in GitHub Desktop.
Groovyでn日前の日付を求める ref: http://qiita.com/fumokmm/items/94c6ed2f26803aab704e
def beforeN(int n) {
new Date() - n
}
// 例: 100日前
println beforeN(100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment