下载此文档

补充两个有用的关于时间的函数(2).txt


文档分类:高等教育 | 页数:约1页 举报非法文档有奖
1/ 1
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/ 1 下载此文档
文档列表 文档介绍
×÷Õߣºchenm
ÈÕÆÚ£º2001-5-15 14:45:31
/*
Time Functions.
cnmuse@
*/
import .*;
import .*;
import ;
import ;
public class formatDateTime{
static String TimeFormat1=" HH:mm:ss";
public formatDateTime(){
}
/*
Function name: pare
Description: Compare two times
Input: pTime1,pTime2 (Format: HH:mm:ss)
Output: time diffrent by seconds
*/
public long pare(pTime1,pTime2){
long iReturn=-1;
SimpleDateFormat sdf = new SimpleDateFormat(TimeFormat1);
Date DateTime1=,new ParsePosition(0));
Date DateTime2=,new ParsePosition(0));
iReturn=()/1000L-()/1000L;
return iReturn;
}
/*
Function name: pareNow
Description: Compare one time with no

补充两个有用的关于时间的函数(2) 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数 1
  • 收藏数 0 收藏
  • 顶次数 0
  • 上传人 管理资源吧
  • 文件大小 0 KB
  • 时间2011-09-16
最近更新