android.text.format.DateFormat和java.text.DateFormat中之间的区别是什么 [英] What is the difference between android.text.format.DateFormat and java.text.DateFormat
问题描述
我看了一些帖子上的Android格式化日期,像这样的:
I read some posts on formatting date on android, like this:
人们主张使用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屋!