首頁(yè) > 專家說(shuō)

java,Calendar的DAY_OF_MONTH,DAY_OF_WEEK.....這三個(gè)變量表示意思??jdk看不懂....

來(lái)源:新能源網(wǎng)
時(shí)間:2024-08-17 10:54:29
熱度:

java,Calendar的DAY_OF_MONTH,DAY_OF_WEEK.....這三個(gè)變量表示意思??jdk看不懂....【專家解說(shuō)】:DAY_OF_MonTH 當(dāng)月的第幾天

【專家解說(shuō)】:DAY_OF_MonTH 當(dāng)月的第幾天,從1開始
DAY_OF_WEEK 返回周幾 ,返回只是Calendar定義的 SUNDAY,
MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, and SATURDAY.
DAY_OF_YEAR 當(dāng)年的第幾天,從1開始
具體看jdk中Calendar的類文檔