如何从Temporal获得TimeZone?

时间:2015-08-27 08:46:57

标签: java java-8 java-time temporal

interface SomeDataClass {
  TemporalAccessor getSomeTime();
}

//somewhere in the impl...
public TemporalAccessor getSomeTime() {
  return OffsetDateTime.from(dateTimeFormatter.parse(someDateInstring));
}

有谁知道如何从这个TemporalAccessor界面获取时区数据?

0 个答案:

没有答案