The result is @code{nil} if either argument is a NaN.
@end defun
-@defun time-equal t1 t2
+@defun time-equal-p t1 t2
This returns @code{t} if @var{t1} and @var{t2} are equal time values.
The result is @code{nil} if either argument is a NaN.
@end defun
floating-point operators do.
+++
-** New function 'time-equal' compares time values for equality.
+** New function 'time-equal-p' compares time values for equality.
** define-minor-mode automatically documents the meaning of ARG.
return time_cmp (t1, t2) < 0 ? Qt : Qnil;
}
-DEFUN ("time-equal", Ftime_equal, Stime_equal, 2, 2, 0,
+DEFUN ("time-equal-p", Ftime_equal_p, Stime_equal_p, 2, 2, 0,
doc: /* Return non-nil if T1 and T2 are equal time values. */)
(Lisp_Object t1, Lisp_Object t2)
{
defsubr (&Scurrent_time);
defsubr (&Stime_add);
defsubr (&Stime_subtract);
- defsubr (&Stime_equal);
+ defsubr (&Stime_equal_p);
defsubr (&Stime_less_p);
defsubr (&Sget_internal_run_time);
defsubr (&Sformat_time_string);
(should (debug-timer-check)) t))
(ert-deftest timer-test-multiple-of-time ()
- (should (time-equal
+ (should (time-equal-p
(timer-next-integral-multiple-of-time '(0 0 0 1) (1+ (ash 1 53)))
(list (ash 1 (- 53 16)) 1))))