title: LocalTime from Date
body: <p>I'm trying to convert a <code>Date</code> instance to a <code>LocalTime</code> instance.</p>
  
  <pre><code>// Create the Date
  Date date = format.parse("2011-02-18 05:00:00.0");    
  
  // Convert to Calendar
  Calendar cal = Calendar.getInstance();
  cal.setTime(date);
  
  // Convert Calendar to LocalTime
  Instant instant = Instant.ofEpochMilli(cal.getTimeInMillis());
  LocalTime convert = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()).toLocalTime();
  </code></pre>
  
  <p>I don't get a compiler error but the <code>LocalTime</code> instance values are wrong.</p>
  
  <p>I think it does not work because <code>Date</code> stores time in <code>fasttime</code> instead of <code>cdate</code>.</p>
  
  <p>I'm using JDK version 1.8.</p>