首页javalegacy_date_formatJava Data Type - 如何列出在SimpleDateFormat类中可用的日期格式

Java Data Type - 如何列出在SimpleDateFormat类中可用的日期格式

我们想知道如何列出在SimpleDateFormat类中可用的日期格式。
       // SimpleDateFormat can be used to control the date/time display format:
       //   E (day of week): 3E or fewer (in text xxx), >3E (in full text)
       //   M (month): M (in number), MM (in number with leading zero)
       //              3M: (in text xxx), >3M: (in full text full)
       //   h (hour): h, hh (with leading zero)
       //   m (minute)
       //   s (second)
       //   a (AM/PM)
       //   H (hour in 0 to 23)
       //   z (time zone)
       //  (there may be more listed under the API - I didn't check)