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