D:apache-maven-3.0.2repositorycommons-langcommons-lang2.4commons-lang-2.4.jar里面的org.apache.commons.lang.time.DateUtils,类中的trancate(Date ,int)
中int这个用Calendar.DAY_OF_MONTH,而且他的值:5
但是如果用Calendar.DAY_OF_YEAR,就会报错:The field 6 is not supported
如果用DAY_OF_WEEK,就会报错:The field 7 is not supported
经常发傻,出这种错误,
最后
以上就是陶醉汉堡最近收集整理的关于Calendar.DAY_OF_MONTH的全部内容,更多相关Calendar内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复