diff scripts/time/datestr.m @ 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 c776f063fefe
line wrap: on
line diff
--- 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 ())