java.util.Calendar 常量值

阅读更多
今天反编译之前写的 DateUtil.class ,引用  Calendar  的常量现在全部变成数字了。
需要把这些数字变回常量,通过反射把这些值打印出来备用。

Calendar.ERA=0
Calendar.YEAR=1
Calendar.MONTH=2
Calendar.WEEK_OF_YEAR=3
Calendar.WEEK_OF_MONTH=4
Calendar.DATE=5
Calendar.DAY_OF_MONTH=5
Calendar.DAY_OF_YEAR=6
Calendar.DAY_OF_WEEK=7
Calendar.DAY_OF_WEEK_IN_MONTH=8
Calendar.AM_PM=9
Calendar.HOUR=10
Calendar.HOUR_OF_DAY=11
Calendar.MINUTE=12
Calendar.SECOND=13
Calendar.MILLISECOND=14
Calendar.ZONE_OFFSET=15
Calendar.DST_OFFSET=16
Calendar.FIELD_COUNT=17
Calendar.SUNDAY=1
Calendar.MONDAY=2
Calendar.TUESDAY=3
Calendar.WEDNESDAY=4
Calendar.THURSDAY=5
Calendar.FRIDAY=6
Calendar.SATURDAY=7
Calendar.JANUARY=0
Calendar.FEBRUARY=1
Calendar.MARCH=2
Calendar.APRIL=3
Calendar.MAY=4
Calendar.JUNE=5
Calendar.JULY=6
Calendar.AUGUST=7
Calendar.SEPTEMBER=8
Calendar.OCTOBER=9
Calendar.NOVEMBER=10
Calendar.DECEMBER=11
Calendar.UNDECIMBER=12
Calendar.AM=0
Calendar.PM=1
Calendar.ALL_STYLES=0
Calendar.SHORT=1
Calendar.LONG=2

你可能感兴趣的:(java)