java 獲取當前時間

/ ** *獲取當前時間,並格式化,返回String *  * @return * / public String getNowTime(){ Date date = new Date(); SimpleDateFormat myFmt2 = new SimpleDateFormat(「yyyy-MM-dd HH:mm:ss」); String dateStr = myFmt2.format(da
相關文章
相關標籤/搜索