java 怎么把41012.623599537 转换成 “yyyy-MM-dd hh:mm:ss” 求答案 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 double d1 = 41012.623599537; Calendar base = Calendar.getInstance(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd "); SimpleDateFormat outFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); base.setTime(format.parse("1899-12-30 ")); base.add(Calendar.DATE, (int) d1); base.add(Calendar.MILLISECOND, (int) ((d1 % 1) * 24 * 60 * 60 * 1000)); System.out.println("Time=" + outFormat.format(base.getTime())); SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);format(new Date("4xxxxxxxx7")) jsp标准动作?? 关于spring datasource 获取连接的问题 面试又挂了 【大家好,我有几个关于创业的问题,希望有创业经验,或是现在在开公司的朋友们给一些建议?】 有关JSTL的问题!在线等待!!!!!!!!!!!!!! 不能启动Tomcat 问个很深奥的问题 求struts里.用SERVLET取得WEB.XML内的内容. JBOSS3.0 VS WEBLOGIC 求传真图信息提取的方案,急!急!急! 一个简单的mysql数据库连接问题 setId([Ljava.lang.String;)] 还是这个该死的异常
double d1 = 41012.623599537;
Calendar base = Calendar.getInstance();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd ");
SimpleDateFormat outFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
base.setTime(format.parse("1899-12-30 "));
base.add(Calendar.DATE, (int) d1);
base.add(Calendar.MILLISECOND, (int) ((d1 % 1) * 24 * 60 * 60 * 1000));
System.out.println("Time=" + outFormat.format(base.getTime()));
format(new Date("4xxxxxxxx7"))