java取当前时间

    技术2022-05-11  63

    import java.text.DecimalFormat;     //Date nowTime=new Date(System.currentTimeMillis()); 取系统时间        //SimpleDateFormat sDateFormat=new SimpleDateFormat("yyyy/MM/DD HH:mm:ss");         //String todayTime=sDateFormat.format(nowTime);        //System.out.println(nowTime);  

    最新回复(0)