|
| 1 | +:java-package: src/org/j6toj8/localization |
| 2 | +:section-java-package: ../../../{java-package} |
| 3 | + |
| 4 | +=== Formatação de Números e Datas |
| 5 | + |
| 6 | +.Objetivo |
| 7 | +-------------------------------------------------- |
| 8 | +Format dates, numbers, and currency values for localization with the NumberFormat and DateFormat classes, including number and date format patterns. |
| 9 | +- |
| 10 | +Formatar datas, números e valores monetários para localização utilizando as classes NumberFormat e DateFormat, incluindo padrões de formato de número e data. |
| 11 | +-------------------------------------------------- |
| 12 | + |
| 13 | +Ainda dentro das ideias de Localização e Internacionalização, é comum a necessidade de apresentar datas, números e valores monetários em diferentes formatos. |
| 14 | + |
| 15 | +O exame de certificação compreende quatro classes principais de formatação: |
| 16 | + |
| 17 | +* `NumberFormat` -> Formatação geral de números, valores monetários, percentuais e números inteiros com arredondamento, possivelmente baseados em `Locale`. |
| 18 | +* `DecimalFormat` -> Formatação de números quando há necessidade de definições mais específicas do formato. |
| 19 | +* `DateTimeFormatter` -> Formatação de data e hora após o Java 8. |
| 20 | +* `DateFormat` -> Formatação de data e hora antes do Java 8. |
| 21 | + |
| 22 | +==== NumberFormat |
| 23 | +==== DecimalFormat |
| 24 | +==== DateTimeFormatter |
| 25 | +==== DateFormat |
| 26 | + |
| 27 | +.Referências |
| 28 | +**** |
| 29 | +
|
| 30 | +* Adding Internationalizationand Localization |
| 31 | ++ |
| 32 | +Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 255). Wiley. Edição do Kindle. |
| 33 | +
|
| 34 | +* Formatting and Parsing |
| 35 | ++ |
| 36 | +Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 603). Wiley. Edição do Kindle. |
| 37 | +
|
| 38 | +* https://stackoverflow.com/questions/4772425/change-date-format-in-a-java-string[Change date format in a Java string.] BalusC. |
| 39 | +
|
| 40 | +* https://www.baeldung.com/java-8-date-time-intro[Introduction to the Java 8 Date/Time API.] |
| 41 | +
|
| 42 | +* https://www.baeldung.com/java-datetimeformatter[Guide to DateTimeFormatter.] |
| 43 | +
|
| 44 | +* https://www.baeldung.com/java-decimalformat[A Practical Guide to DecimalFormat.] |
| 45 | +
|
| 46 | +* https://www.baeldung.com/java-simple-date-format[A Guide to SimpleDateFormat.] |
| 47 | +
|
| 48 | +* https://docs.oracle.com/javase/tutorial/i18n/format/index.html[Lesson: Formatting] The Java™ Tutorials. |
| 49 | +
|
| 50 | +* https://docs.oracle.com/javase/tutorial/datetime/iso/format.html[Parsing and Formatting.] The Java™ Tutorials. |
| 51 | +
|
| 52 | +* https://docs.oracle.com/javase/tutorial/java/data/numberformat.html[Formatting Numeric Print Output] The Java™ Tutorials. |
| 53 | +
|
| 54 | +**** |
0 commit comments