I am reading data from a file and will need to serialize it out elsewhere after some computation. How can I get the following to print without milliseconds so that the string that is passed to DateTime.parse and what is outputted are identical?
System.out.println(DateTime.parse("2015-06-06T01:51:49-06:00").toString())
2015-06-06T01:51:49.000-06:00