首页 > 系统 > Android > 正文

Android调用系统时间格式显示时间信息

2019-10-24 20:40:23
字体:
来源:转载
供稿:网友
这篇文章主要介绍了Android调用系统时间格式显示时间信息的使用方法,代码很简单
 

使用如下方法:

 

复制代码代码如下:

java.text.DateFormat dateFormat = android.text.format.DateFormat.getDateFormat(context);

 

dateFormat = android.text.format.DateFormat.getTimeFormat(context.getApplicationContext());


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表