DateTimeFormatter
Class DateTimeFormatter
- java.lang.Object
-
- java.time.format.DateTimeFormatter
public final class DateTimeFormatter extends Object
Formatter for printing and parsing date-time objects.
This class provides the main application entry point for printing and parsing and provides common implementations of DateTimeFormatter
:
- Using predefined constants, such as
ISO_LOCAL_DATE
- Using pattern letters, such as
uuuu-MMM-dd
- Using localized styles, such as
long
ormedium
More complex formatters are provided by 登录查看完整内容