On Sun, Apr 24, 2011 at 5:28 PM, Streets Of Boston <[email protected]> wrote: > "Per the docs, I should be able to get a time formatted as follows": Which > docs says that 'p' and 'a' are valid values? > > AM and PM are the official en-US locale strings for before noon and after > noon. > The 'p' and 'a' are not official locale strings for this.
Specifically, the docs state: "Note that the count [of characters in a pattern] does not specify the exact width of the field." Just because you have a single "a" does not mean you get a one-character AM/PM designator. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

