title: Converting UTC time string to UTC milliseconds
body: <p>I am getting a time string that is the sunrise/sunset times in UTC in format <code>HH:mm</code></p>
  
  <p>example:</p>
  
  <p><code>09:35</code></p>
  
  <p>Currently I am doing this to convert the given time to the current date UTC using the <code>java.time</code> library</p>
  
  <pre><code>val utcZoneId = ZoneId.of("UTC")
  val now = Instant.now()
  val dateTimeFormater:DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd").withZone(utcZoneId)
  val date = dateTimeFormater.format(now)
  
  val fullDateSunrise = "${date}T${data[0].sunrise}:00"
  val local = LocalDateTime.parse(fullDateSunrise, DateTimeFormatter.ISO_LOCAL_DATE_TIME)
  val final = local.atZone(utcZoneId)
  val utcSunrise = final.toInstant().toEpochMilli()
  
  val fullDateSunset = "${date}T${data[0].sunset}:00"
  val local2 = LocalDateTime.parse(fullDateSunset, DateTimeFormatter.ISO_LOCAL_DATE_TIME)
  val final2 = local2.atZone(utcZoneId)
  val utcSunset = final2.toInstant().toEpochMilli()
  </code></pre>
  
  <p>I then pass the UTC milliseconds back the the client once I have them</p>
  
  <p>It works how I need it to but I can help but feel there must be an easier way than getting a formatted UTC date string and combining that with the given time and then converting that to an actual DateTime object.</p>
  
  <p>So the question is, is there an easier way to do this?</p>