docs: private Long trySeconds(String str) {
  
          for(String pattern : datePatterns) {
  
              SimpleDateFormat parser = new SimpleDateFormat(pattern, locale);
  
              try {
                  long milliseconds = parser.parse(str).getTime();
                  return milliseconds / 1000L;
              }
              catch(Exception e) {
                  // Just ignore and try the next pattern in `datePatterns`.
              }
          }
  
          // Could not parse the string into a meaningful date, return null.
          return null;
      }