android.text.format.DateFormat和java.text.DateFormat中之间的区别是什么 [英] What is the difference between android.text.format.DateFormat and java.text.DateFormat

查看:109
本文介绍了android.text.format.DateFormat和java.text.DateFormat中之间的区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了一些帖子上的Andr​​oid格式化日期,像这样的:

I read some posts on formatting date on android, like this:

你如何格式化日期和时间的Andr​​oid?

人们主张使用android.text.format.DateFormat而不是java.text.DateFormat中,

People suggest use android.text.format.DateFormat rather than java.text.DateFormat,

另外这里,它在Android的转换日期字符串时,提了一个问题:

Also here, it mention a problem when converting date to string in android:

<一个href="http://stackoverflow.com/questions/3905545/android-load-timezone-too-long-loaded-time-zone-names-for-en-us">Android负载时区时间过长:为EN_US 加载时区名称

我想知道什么是android.text.format.DateFormat和java.text.DateFormat中的?

I am wondering what's the difference between android.text.format.DateFormat and java.text.DateFormat?

推荐答案

怎么样自救吗?比较的API,阅读的JavaDoc,看看自己:

How about some self-help here? Compare the APIs, read the JavaDocs and see for yourself:

这篇关于android.text.format.DateFormat和java.text.DateFormat中之间的区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆