Skip to content

Instantly share code, notes, and snippets.

@joasgarcia
Last active August 29, 2015 14:17
Show Gist options
  • Save joasgarcia/c99e69ff9ae8661f4495 to your computer and use it in GitHub Desktop.
Save joasgarcia/c99e69ff9ae8661f4495 to your computer and use it in GitHub Desktop.
Construir datas facilmente em Groovy
Date date1 = new Date()
date1.set(year: 2015, month: Calendar.APRIL, date: 1, hourOfDay: 10, minute: 12, second: 0)
def date2 = new GregorianCalendar(2015, Calendar.APRIL, 1, 1, 23, 45).time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment