Java Date Time Java Java API
java.time.ZonedDateTime
public LocalTime toLocalTime()
package com.logicbig.example.zoneddatetime;import java.time.LocalTime;import java.time.ZonedDateTime;public class ToLocalTimeExample { public static void main(String... args) { ZonedDateTime d = ZonedDateTime.now(); System.out.println(d); LocalTime localTime = d.toLocalTime(); System.out.println(localTime); }}
2017-05-01T16:00:32.682-05:00[America/Chicago]16:00:32.682