java.time.ZonedDateTime.getLong() 方法示例 java.time.ZonedDateTime.getHour() 方法示例 java.time.ZonedDateTime.getMinute() 方法示例 java.time.ZonedDateTime.getLong() 方法示例 package com.codingdict; import java.time.ZonedDateTime; import java.time.temporal.ChronoField; public class ZonedDateTimeDemo { public static void main(String[] args) { ZonedDateTime date = ZonedDateTime.parse("2017-03-28T12:25:38.492+05:30[Asia/Calcutta]"); System.out.println(date.getLong(ChronoField.CLOCK_HOUR_OF_DAY)); } } java.time.ZonedDateTime.getHour() 方法示例 java.time.ZonedDateTime.getMinute() 方法示例