Android获取系统时间格式

来源:互联网 发布:怎么网络报警 编辑:程序博客网 时间:2024/05/09 08:41


获取时间格式

DateFormat.is24HourFormat(context)如果为true即为24小时,false为12小时制式



获取日期格式

String  dtFor = Settings.System.getString(context.getContentResolver(),Settings.System.DATE_FORMAT)


原创粉丝点击