UTC时间的转换与字符时间转换UTC
UTC时间转换字符时间:
new SimpleDateFormat("yyyyMMddhhmmss").format(new Date(Long.parseLong("1251358989")*1000));
字符串时间转换UTC
String str = "201104141302";
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmm");
long millionSeconds = sdf.parse(str).getTime();//毫秒
System.out.println(millionSeconds);