android获取系统当前时间

来源:互联网 发布:windows pci e 开发 编辑:程序博客网 时间:2024/06/05 03:40

android获取系统当前时间

/* * 获取系统当前时间 */@SuppressLint("SimpleDateFormat") public static String getTime(){SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式return df.format(new Date());// new Date()为获取当前系统时间}
0 0