我用Calendar.setTime(Date date),编译时报错。
Note: F:\tomcat\webapps\examples\WEB-INF\classes\cal\JspCalendar.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
...全文
1114打赏收藏
怎么修改系统时间?
我用Calendar.setTime(Date date),编译时报错。 Note: F:\tomcat\webapps\examples\WEB-INF\classes\cal\JspCalendar.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details.
UTC(int year, int month, int date, int hrs, int min, int sec) Deprecated. As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date, hrs, min, sec) or GregorianCalendar(year + 1900, month, date, hrs, min, sec), using a UTC TimeZone, followed by Calendar.getTime().getTime()