function nanoOfDayToLocalTime (nanoOfDay) {
  nanoOfDay = int(nanoOfDay)

  const hour = nanoOfDay.div(NANOS_PER_HOUR)
  nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR))

  const minute = nanoOfDay.div(NANOS_PER_MINUTE)
  nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE))

  const second = nanoOfDay.div(NANOS_PER_SECOND)
  const nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND))

  return new LocalTime(hour, minute, second, nanosecond)
}
Converts nanoseconds of the day into local time.
@param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.
@return {LocalTime} the local time representing given nanoseconds of the day.