docs: public static long secsSinceEpoch(DateValue date) {
          long result = fixedFromGregorian(date) *
                  SECS_PER_DAY;
          if (date instanceof TimeValue) {
              TimeValue time = (TimeValue) date;
              result +=
                      time.second() +
                              60 * (time.minute() +
                                      60 * time.hour());
          }
          return result;
      }