Last active
August 29, 2015 14:17
-
-
Save joasgarcia/c99e69ff9ae8661f4495 to your computer and use it in GitHub Desktop.
Construir datas facilmente em Groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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