Android获得系统时间(24小时制)
package my.pack; import android.text.format.Time; public class MyTime { public static String now() { Time localTime = new Time("Asia/Hong_Kong"); localTime.setToNow(); return localTime.format("%Y-%m-%d %H:%M:%S"); } }
Android/Ios开发
QQ交流:1113505037(验证:cnblogs)
QQ群:112754855