def t1 = new Date() def a = t1 - 1 println aprintln a.getDay()
Standard input is empty
Sun May 20 05:52:30 GMT 2012 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!