Mercurial > hg > octave-shane
changeset 11400:277d891afae2
datevec.m: style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Dec 2010 14:59:04 -0500 |
parents | 36dbe5124d21 |
children | 4c335d398c8d |
files | scripts/ChangeLog scripts/time/datevec.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-21 John W. Eaton <jwe@octave.org> + + * time/datevec.m: Style fixes. + 2010-12-20 Ben Abbott <bpabbott@mac.com> * plot/__fltk_print__.m: Update figure for FLTK printing. Bug #31884.
--- a/scripts/time/datevec.m +++ b/scripts/time/datevec.m @@ -104,7 +104,7 @@ endif if (isempty (p)) - p = (localtime (time)).year + 1900 - 50; + p = (localtime (time ())).year + 1900 - 50; endif if (ischar (date)) @@ -132,7 +132,7 @@ endif endfor else - % Decipher the format string just once for sake of speed. + ## Decipher the format string just once for sake of speed. [f, rY, ry, fy, fm, fd, fh, fmi, fs] = __date_vfmt2sfmt__ (f); for k = 1:nd [found y(k) m(k) d(k) h(k) mi(k) s(k)] = __date_str2vec__ (date{k}, p, f, rY, ry, fy, fm, fd, fh, fmi, fs);