获得当前时间

 SimpleDateFormat simpleDateTimeFormat  =   new  SimpleDateFormat( " yyyy-MM-dd HH:mm:ss " );   
    Calendar c =  Calendar.getInstance(Locale.CHINESE);   //getInstance()
    String nowtime = simpleDateTimeFormat.format(c.getTime()) ;  

---------------------------------------------------------------------------------------------------------------------------------
copyright:http://www.cnblogs.com/anee/
原文地址:https://www.cnblogs.com/anee/p/2675889.html