docs: public static int toSeconds(TimeRange timeRange) {
          if (timeRange.getFrom() == null || timeRange.getTo() == null) {
              return 0;
          }
  
          try {
              return Seconds.secondsBetween(timeRange.getFrom(), timeRange.getTo()).getSeconds();
          } catch (IllegalArgumentException e) {
              return 0;
          }
      }