Java DateFormat for 2 millisecond precision
问题 I'm having a problem with trying to get the DateFormat library to give me a String with the date to be formatted with 2 millisecond places instead of the usual 3. I realize this is more along the line of centi-seconds, but afaik Java doesn't support that. Here is some code to show the problem I am having. I would expect it to output to two milliseconds, but it outputs three. public class MilliSeconds { private static final String DATE_FORMAT_2MS_Digits = "yyyy-MM-dd'T'HH:mm:ss.SS'Z'"; private