20230630 java.time.format.DateTimeFormatter

介绍

  • java.time.format.DateTimeFormatter
  • public final class DateTimeFormatter
  • 用来替代 java.text.DateFormat

API

常量

  • BASIC_ISO_DATE

  • ISO_LOCAL_DATE

  • ISO_LOCAL_TIME

  • ISO_LOCAL_DATE_TIME

  • ISO_OFFSET_DATE

  • ISO_OFFSET_TIME

  • ISO_OFFSET_DATE_TIME

  • ISO_DATE

  • ISO_TIME

  • ISO_DATE_TIME

  • ISO_ZONED_DATE_TIME

  • ISO_ORDINAL_DATE

  • ISO_WEEK_DATE

  • ISO_INSTANT

  • RFC_1123_DATE_TIME

static

  • ofPattern
  • ofLocalizedDate
  • ofLocalizedTime
  • ofLocalizedDateTime
  • parsedExcessDays
  • parsedLeapSecond

public

  • getLocale
  • withLocale
  • localizedBy
  • getDecimalStyle
  • withDecimalStyle
  • getChronology
  • withChronology
  • getZone
  • withZone
  • getResolverStyle
  • withResolverStyle
  • getResolverFields
  • withResolverFields
  • format
  • formatTo
  • parse
  • parseBest
  • parseUnresolved
  • toFormat
posted @ 2023-09-05 09:25  流星<。)#)))≦  阅读(3)  评论(0编辑  收藏  举报