【发布时间】:2022-07-06 04:21:37
【问题描述】:
所以,基本上我在我的天气预报网站中使用 openweathermap.org api。 但他们提供 UTC 格式的日落。我想要的是将日落的 UTC 格式转换为 12 小时格式。 在这里,我给出了来自 api 的部分 json 响应:
"dt": 1657048911,
"sunrise": 1657066812,
"sunset": 1657114310,
"temp": 23.58,
"feels_like": 24.21,
【问题讨论】:
标签: javascript api