Why two times the value of the different, he is how to store in the 2011
CodePudding user response:
Do you perform the s1. The parse (STR);Didn't perform s2. Parse (STR);
So not the same as
CodePudding user response:
When a constructor for the operation of the initialization timeCodePudding user response:
Public SimpleDateFormat (String pattern, Locale Locale){
If (the pattern==null | | locale==null) {
Throw new NullPointerException ();
}
InitializeCalendar (locale);
Enclosing the pattern=pattern;
Enclosing formatData=https://bbs.csdn.net/topics/DateFormatSymbols.getInstanceRef (locale);
Enclosing the locale=locale;
The initialize (locale);
}