如何使用 simpledateformat 解析 openweather 数据
How to parse openweather data with simpledate format
我从 openweather api 收到格式为 "dt":1489602000"
的日期和时间,我不知道那是什么意思。我想收到这样的东西 "2014-07-23 09:00:00"
如何使用 SimpleDateFormat
转换它
String transformedDate = new SimpleDateFormat("H:mm dd MMM yy").format(new Date(yourTime*1000));
我从 openweather api 收到格式为 "dt":1489602000"
的日期和时间,我不知道那是什么意思。我想收到这样的东西 "2014-07-23 09:00:00"
如何使用 SimpleDateFormat
String transformedDate = new SimpleDateFormat("H:mm dd MMM yy").format(new Date(yourTime*1000));