presto-verifier/src/main/java/io/prestosql/verifier/Verifier.java/Verifier/optionalDurationToSeconds
class Verifier:    private static Double optionalDurationToSeconds(Duration duration)
    {
        return duration != null ? duration.convertTo(SECONDS).getValue() : null;
    }