当前位置: 技术问答>java相关
关于时间的问题?
来源: 互联网 发布时间:2015-08-29
本文导语: 两个Date型的数据怎样相减?请高手指教!谢谢! | long dateDiff = dateA.getTime() - dateB.getTime(); //dateDiff is the difference in millisecond
两个Date型的数据怎样相减?请高手指教!谢谢!
|
long dateDiff = dateA.getTime() - dateB.getTime();
//dateDiff is the difference in millisecond
//dateDiff is the difference in millisecond