presto-main/src/main/java/io/prestosql/operator/scalar/FormatFunction.java/FormatFunction/toLocalTime
class FormatFunction:    private static LocalTime toLocalTime(ConnectorSession session, long value)
    {
        if (session.isLegacyTimestamp()) {
            Instant instant = Instant.ofEpochMilli(value);
            ZoneId zoneId = ZoneId.of(session.getTimeZoneKey().getId());
            return ZonedDateTime.ofInstant(instant, zoneId).toLocalTime();
        }
        return LocalTime.ofNanoOfDay(MILLISECONDS.toNanos(value));
    }