【发布时间】:2022-09-30 05:45:53
【问题描述】:
我从远程 API 得到这样的身体:
{
\"timezone\": \"18000\",
\"id\": \"1512569\",
\"name\": \"Tashkent\"
}
如何将时区字段转换为 GMT 格式? 例如在我的情况下:
timezon:18000 = GMT 5
-
ZoneOffset.ofTotalSeconds(18000)。产量+05:00。
标签: java time calendar localdatetime