Skip to content

Instantly share code, notes, and snippets.

@peysal
Created December 23, 2013 13:54
Show Gist options
  • Select an option

  • Save peysal/8097482 to your computer and use it in GitHub Desktop.

Select an option

Save peysal/8097482 to your computer and use it in GitHub Desktop.
Setting date and time
package main.groovy
Calendar calendar = Calendar.instance
calendar.set(2011, 2, 26)
println calendar.time
calendar.set(2012, 0, 1, 13,13,59)
println calendar.time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment