java.time的区域名称的正式列表在哪里? [英] Where is the official list of zone names for java.time?
本文介绍了java.time的区域名称的正式列表在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有用于以下用途的区域名称的正式列表:
Is there an official list of zone names that are used for the following:
zoneId = ZoneId.of("America/New_York")
或者java.time.ZoneId是否有可能生成我可以使用的列表本身?
我正在使用它将Instant转换为时间的字符串表示形式,例如:
I'm using this to convert an Instant to a string representation of time like:
ZoneDateTime.ofInstant(instant, zoneId).format(DateTimeFormatter.ofPattern("..."))
推荐答案
查看全文