【发布时间】:2019-04-14 07:18:06
【问题描述】:
我正在从 Cloud Firestore 读取数据,其中之一是时间戳。那么如何在 SimpleDateFormat 的活动中将该时间戳设置为 TextView。
【问题讨论】:
-
安卓?顺便考虑一下扔掉长期过时且臭名昭著的麻烦
SimpleDateFormat和朋友,并将ThreeTenABP 添加到您的Android 项目中,以便使用java.time,现代Java 日期和时间API。使用起来感觉好多了。 -
嘿@马来人!你试过我的答案了吗,它解决了你的问题吗?
-
@PradyumanDixit 是的。谢谢你。
标签: java firebase timestamp simpledateformat settext