"dt":1427700245
我如何更改此日期格式爲17-Mar-2017 13:40
的日期和時間使用openweathermap API
String currentDateTimeString = DateFormat.getDateTimeInstance().format(new Date(weatherResponse.getDt()*1000));
date.setText(currentDateTimeString);
這表明我25 Jan 1969 01:52:28
應該甚至約會對象的工作。 – albeee
哈哈,最好報復..。先閱讀API並找出你出錯的地方.. –