changeset 22747:fb76e570466b

maint: Merge stable to default.
author Rik <rik@octave.org>
date Wed, 09 Nov 2016 21:16:44 -0800
parents 9506842e0f6f (current diff) bc9b0f75859e (diff)
children 4f144938eb65
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/time/datenum.m	Wed Nov 09 21:04:08 2016 -0800
+++ b/scripts/time/datenum.m	Wed Nov 09 21:16:44 2016 -0800
@@ -140,7 +140,7 @@
 
   ## Set start of year to March by moving Jan. and Feb. to previous year.
   ## Correct for months > 12 by moving to subsequent years.
-  year += fix ((month-14)/12);
+  year += ceil ((month-14)/12);
 
   ## Lookup number of days since start of the current year.
   if (numel (month) == 1 || numel (day) == 1)