日期时间格式-模式字段对照

At  java.text.DateFormatSymbol.class;

/**

* Unlocalized date-time pattern characters. For example: 'y', 'd', etc.

* All locales use the same these unlocalized pattern characters.

*/

static final String  patternChars = "GyMdkHmsSEDFwWahKzZYuX";

static final int PATTERN_ERA                  =  0; // G

static final int PATTERN_YEAR                =  1; // y

static final int PATTERN_MONTH                =  2; // M

static final int PATTERN_DAY_OF_MONTH        =  3; // d

static final int PATTERN_HOUR_OF_DAY1        =  4; // k

static final int PATTERN_HOUR_OF_DAY0        =  5; // H

static final int PATTERN_MINUTE              =  6; // m

static final int PATTERN_SECOND              =  7; // s

static final int PATTERN_MILLISECOND          =  8; // S

static final int PATTERN_DAY_OF_WEEK                                         =  9; // E

static final int PATTERN_DAY_OF_YEAR                                          = 10; // D

static final int PATTERN_DAY_OF_WEEK_IN_MONTH                     = 11; // F

static final int PATTERN_WEEK_OF_YEAR                                        = 12; // w

static final int PATTERN_WEEK_OF_MONTH                                     = 13; // W

static final int PATTERN_AM_PM                                                         = 14; // a

static final int PATTERN_HOUR1                                                          = 15; // h

static final int PATTERN_HOUR0                                                          = 16; // K

static final int PATTERN_ZONE_NAME                                                = 17; // z

static final int PATTERN_ZONE_VALUE                                               = 18; // Z

static final int PATTERN_WEEK_YEAR                                                 = 19; // Y

static final int PATTERN_ISO_DAY_OF_WEEK                                     = 20; // u

static final int PATTERN_ISO_ZONE                                                      = 21; // X

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,811评论 0 23
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,859评论 18 139
  • 把你装成一瓶黄色的香水 放在高高的架子上 想你时 就喷在身体上 带着你 无故蒸发 或者 散到别人鼻子 钻进心里 安...
    冲野瑞阅读 267评论 0 0
  • 个人专栏丨浙江诗人陆岸 雨夜垂直 天空是暗色的彼岸 彼岸倒悬 雨是垂直的海浪,听海深处 林立的大地呻吟 与天空平行...
    糖点什么阅读 275评论 0 0
  • 秋雨 秋殇 秋思量 你未曾见霜 我却穿了冬装
    清夜闲心阅读 298评论 -2 16