Mercurial > octave-antonio
comparison scripts/time/datestr.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 40e32fe44aaa |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
234 if (strcmp (df, df_orig)) | 234 if (strcmp (df, df_orig)) |
235 ## PM not set. | 235 ## PM not set. |
236 df = strrep (df, "HH", "%H"); | 236 df = strrep (df, "HH", "%H"); |
237 else | 237 else |
238 df = strrep (df, "HH", sprintf ("%2d", v(i,4))); | 238 df = strrep (df, "HH", sprintf ("%2d", v(i,4))); |
239 endif | 239 endif |
240 | 240 |
241 df = regexprep (df, '[Yy][Yy][Yy][Yy]', "%Y"); | 241 df = regexprep (df, '[Yy][Yy][Yy][Yy]', "%Y"); |
242 | 242 |
243 df = regexprep (df, '[Yy][Yy]', "%y"); | 243 df = regexprep (df, '[Yy][Yy]', "%y"); |
244 | 244 |