ZonedDateTime简介及用法示例
下文笔者讲述ZonedDateTime的简介及示例说明,如下所示
ZonedDateTime的简介
ZonedDateTime可用于表示 一个带有时区的日期和时间对象例:ZonedDateTime的示例
/** * java265.com ZonedDateTime对象的示例 * * @throws IOException */ public static void main(String[] args) throws IOException { ZonedDateTime zonedDateTime = ZonedDateTime.now(); System.out.println(zonedDateTime.toString()); }

版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。