changeset 11329:6b073da9d7fc

ChangeLog fix and new datestr test omitted from previous change
author John W. Eaton <jwe@octave.org>
date Thu, 09 Dec 2010 02:42:29 -0500
parents f286a874617c
children 4f399d91eb32
files scripts/ChangeLog scripts/time/datestr.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Dec 09 02:37:21 2010 -0500
+++ b/scripts/ChangeLog	Thu Dec 09 02:42:29 2010 -0500
@@ -1,7 +1,7 @@
 2010-12-09  John W. Eaton  <jwe@octave.org>
 
 	* time/datestr.m: Don't call localtime (mktime (tm)) to fill in
-	missing elements of time strcture.
+	missing elements of time strcture.  Bug #31079.
 
 2010-12-08  Ben Abbott <bpabbott@mac.com>
 
--- a/scripts/time/datestr.m	Thu Dec 09 02:37:21 2010 -0500
+++ b/scripts/time/datestr.m	Thu Dec 09 02:42:29 2010 -0500
@@ -336,6 +336,8 @@
 ## avoid the bug where someone happens to give a vector of datenums that
 ## happens to be 6 wide
 %!assert(datestr(733452.933:733457.933), ["14-Feb-2008 22:23:31";"15-Feb-2008 22:23:31";"16-Feb-2008 22:23:31";"17-Feb-2008 22:23:31";"18-Feb-2008 22:23:31";"19-Feb-2008 22:23:31"])
+%!assert (datestr ([1944, 6, 6, 6, 30, 0], 0), "06-Jun-1944 06:30:00");
+
 # demos
 %!demo
 %! datestr (now ())