java.time.ZonedDateTime.parse(CharSequence text, DateTimeFormatter formatter) java.time.ZonedDateTime.parse() 方法示例 java.time.ZonedDateTime.plus() 方法示例 java.time.ZonedDateTime.parse(CharSequence text, DateTimeFormatter formatter) package com.codingdict; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class ZonedDateTimeDemo { public static void main(String[] args) { DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ISO_ZONED_DATE_TIME; String date = "2017-03-28T12:25:38.492+05:30[Asia/Calcutta]"; ZonedDateTime date1 = ZonedDateTime.parse(date, dateTimeFormatter); System.out.println(date1); } } java.time.ZonedDateTime.parse() 方法示例 java.time.ZonedDateTime.plus() 方法示例