当前位置: 技术问答>java相关
怎么计算间隔天数!急!
来源: 互联网 发布时间:2017-04-14
本文导语: 怎么计算间隔天数!急! | long subTempTime = dDate2.getTime()-dDate1.getTime() ; int day = (int)(subTempTime/86400000) ; int hour = (int)((subTempTime%86400000)/3600000) ; int minute = (int)(((subTempTime%864000...
怎么计算间隔天数!急!
|
long subTempTime = dDate2.getTime()-dDate1.getTime() ;
int day = (int)(subTempTime/86400000) ;
int hour = (int)((subTempTime%86400000)/3600000) ;
int minute = (int)(((subTempTime%86400000)%3600000)/60000);
int second = (int) ((((subTempTime%86400000)%3600000)%24000)/1000);
currentTime = String.valueOf(day)+"Ìì"+String.valueOf(hour)+"Сʱ"+String.valueOf(minute)+"·Ö"+String.valueOf(second)+"Ãë";
int day = (int)(subTempTime/86400000) ;
int hour = (int)((subTempTime%86400000)/3600000) ;
int minute = (int)(((subTempTime%86400000)%3600000)/60000);
int second = (int) ((((subTempTime%86400000)%3600000)%24000)/1000);
currentTime = String.valueOf(day)+"Ìì"+String.valueOf(hour)+"Сʱ"+String.valueOf(minute)+"·Ö"+String.valueOf(second)+"Ãë";
|
把问题说得清楚一些,不明白你的意思!
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。