Reverse order of arguments to DATEDIFF, for compatibility. Thanks to
[pspp-builds.git] / doc / expressions.texi
index 540cad220ef4492e2b65fca73f02ebb80f283302..a03a2fd432359d928c68d2905267a609fadef919 100644 (file)
@@ -1027,7 +1027,7 @@ before performing analysis.
 
 PSPP supplies a few functions for date arithmetic:
 
-@deftypefn {Function} {} DATEDIFF (@var{date1}, @var{date2}, @var{unit})
+@deftypefn {Function} {} DATEDIFF (@var{date2}, @var{date1}, @var{unit})
 Returns the span of time from @var{date1} to @var{date2} in terms of
 @var{unit}, which must be a quoted string, one of @samp{years},
 @samp{quarters}, @samp{months}, @samp{weeks}, @samp{days},