第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

java.sql.Timestamp拋出異常

java.sql.Timestamp拋出異常

慕桂英3389331 2019-03-13 18:15:15
使用下面代碼獲取當(dāng)前時(shí)間:import java.sql.Timestamp; public class TimeFormat {         public static Timestamp getCurrentDateAndTime()         {             String strFormat = new String("yyyy-MM-dd HH:mm:ss");             SimpleDateFormat formatter = new SimpleDateFormat(strFormat);             java.util.Date theDate = new java.util.Date();             theDate = (java.util.Date) formatter.parse(formatter.format(theDate));             Timestamp rtnTS = new Timestamp(theDate.getTime());             return rtnTS;         } }創(chuàng)建了另一個(gè)類作為數(shù)據(jù)模型。public class InvoiceObject extends java.lang.Object implements Serializable {     public Integer mId;     public Timestamp mTimeIssued;     public InvoiceObject()     {             this.mId = new Long("0");             Timestamp tempTime = TimeFormat.getCurrentDateAndTime(); //successful         this.mTimeIssued = tempTime; //here throwing error     } }但是在分配當(dāng)期日期的時(shí)候報(bào)出錯(cuò)誤,不知道原因在那兒?請(qǐng)大俠幫忙。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 738 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)