Beta Detector Calibration界面 返回结果添加acqStartTime数据
This commit is contained in:
parent
5a605e432e
commit
6a9c3c1e16
|
@ -206,6 +206,29 @@ public class DateUtils extends PropertyEditorSupport {
|
||||||
return sformat.format(nowDate);
|
return sformat.format(nowDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时间字符串格式转换
|
||||||
|
* @param date 时间字符串
|
||||||
|
* @param sourceFormat 字符串原有格式
|
||||||
|
* @param targetFormat 需要转换成的格式
|
||||||
|
* @return 字符串
|
||||||
|
*/
|
||||||
|
public static String dateformat(String date,String sourceFormat,String targetFormat)
|
||||||
|
{
|
||||||
|
SimpleDateFormat sformat = new SimpleDateFormat(sourceFormat);
|
||||||
|
Date nowDate = null;
|
||||||
|
try {
|
||||||
|
nowDate = sformat.parse(date);
|
||||||
|
sformat=new SimpleDateFormat(targetFormat);
|
||||||
|
} catch (ParseException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return sformat.format(nowDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日期转换为字符串
|
* 日期转换为字符串
|
||||||
*
|
*
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user