原文:https://blog.csdn.net/drcwr/article/details/50971637

  %%   a literal %   一个文字
  %a   locale's abbreviated weekday name (e.g., Sun)   语言环境的缩写工作日的名字
  %A   locale's full weekday name (e.g., Sunday)            语言环境的完整工作日的名字
  %b   locale's abbreviated month name (e.g., Jan)        语言环境的缩写月的名字
  %B   locale's full month name (e.g., January)                语言环境是完整月的名字
  %c   locale's date and time (e.g., Thu Mar  3 23:05:25 2005)  区域设置的日期和时间
  %C   century; like %Y, except omit last two digits (e.g., 20)        %Z   alphabetic time zone abbreviation (e.g., EDT)          字母时区缩写

哈哈,懒得翻译了,需要时再翻译吧,我这边最常用的就是年月日,时分秒的格式,其他的了解就行。



相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-07-07
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-09-13
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案