what's this class for? import java.time.format.*;

9/30/2016 5:03:05 PM

Sandile Mtshali

2 Answers

New Answer


It's used to format time :D


Package java.time.format Description Provides classes to print and parse dates and times. Printing and parsing is based around the DateTimeFormatter class. Instances are generally obtained from DateTimeFormatter, however DateTimeFormatterBuilder can be used if more powe ris needed. Localization occurs by calling withLocale(Locale )on the formatter. Further customization is possibleusing DecimalStyle.