$_ = '2012-04-21T01:56:00.581550';s/\.\d*//;print $_, "\n";
Standard input is empty
2012-04-21T01:56:00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!