- All Known Subinterfaces:
FormatPrinter,PositionDateParser
- All Known Implementing Classes:
DefaultDatePrinter,FastDateParser,FastDatePrinter,FormatBuilder,SimpleDatePrinter
public interface DatePrinter
日期信息获取接口,用于提供日期格式、时区和地域信息。
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescription获取地域信息。获取日期格式化或转换的模式。获取时区信息。
-
Method Details
-
getPattern
String getPattern()获取日期格式化或转换的模式。- Returns:
SimpleDateFormat兼容的格式字符串
-
getTimeZone
TimeZone getTimeZone()获取时区信息。- Returns:
- 时区对象
-
getLocale
Locale getLocale()获取地域信息。- Returns:
- 地域对象
-