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