Mercurial > hg > octave-lyh
changeset 8643:92e193030b77
bugfix in datestr with YYYY and dd
author | Benjamin Lindner <lindnerb@users.sourceforge.net> |
---|---|
date | Fri, 30 Jan 2009 14:06:21 -0500 |
parents | 016e14be00c6 |
children | fac8c78b4fb9 |
files | scripts/ChangeLog scripts/time/datestr.m |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-01-30 Benjamin Lindner <lindnerben@gmx.net> + + * time/datestr.m: Convert YYYY to %Y instead of %C%y. + Convert [Dd][Dd] to %d instead of %e. + 2009-01-30 Ben Abbott <bpabbott@mac.com> * plot/print.m: Use __gnuplot_has_feature__ instead of
--- a/scripts/time/datestr.m +++ b/scripts/time/datestr.m @@ -236,7 +236,7 @@ df = strrep (df, "HH", sprintf ("%2d", v(i,4))); endif - df = regexprep (df, "[Yy][Yy][Yy][Yy]", "%C%y"); + df = regexprep (df, "[Yy][Yy][Yy][Yy]", "%Y"); df = regexprep (df, "[Yy][Yy]", "%y"); @@ -244,7 +244,7 @@ df = regexprep (df, "[Dd][Dd][Dd]", "%a"); - df = regexprep (df, "[Dd][Dd]", "%e"); + df = regexprep (df, "[Dd][Dd]", "%d"); tmp = names_d{weekday (datenum (v(i,1), v(i,2), v(i,3)))}; df = regexprep (df, "([^%])[Dd]", sprintf ("$1%s", tmp));