time | Calls | line |
---|
| | 203 | function [formatstr] = getdateform(dateform)
|
| | 204 | % Determine date format string from date format index.
|
< 0.001 | 20 | 205 | switch dateform
|
< 0.001 | 20 | 206 | case -1, formatstr = 'dd-mmm-yyyy HH:MM:SS';
|
< 0.001 | 20 | 207 | case 0, formatstr = 'dd-mmm-yyyy HH:MM:SS';
|
| | 208 | case 1, formatstr = 'dd-mmm-yyyy';
|
| | 209 | case 2, formatstr = 'mm/dd/yy';
|
| | 210 | case 3, formatstr = 'mmm';
|
| | 211 | case 4, formatstr = 'm';
|
| | 212 | case 5, formatstr = 'mm';
|
| | 213 | case 6, formatstr = 'mm/dd';
|
| | 214 | case 7, formatstr = 'dd';
|
| | 215 | case 8, formatstr = 'ddd';
|
| | 216 | case 9, formatstr = 'd';
|
| | 217 | case 10, formatstr = 'yyyy';
|
| | 218 | case 11, formatstr = 'yy';
|
| | 219 | case 12, formatstr = 'mmmyy';
|
| | 220 | case 13, formatstr = 'HH:MM:SS';
|
| | 221 | case 14, formatstr = 'HH:MM:SS PM';
|
| | 222 | case 15, formatstr = 'HH:MM';
|
| | 223 | case 16, formatstr = 'HH:MM PM';
|
| | 224 | case 17, formatstr = 'QQ-YY';
|
| | 225 | case 18, formatstr = 'QQ';
|
| | 226 | case 19, formatstr = 'dd/mm';
|
| | 227 | case 20, formatstr = 'dd/mm/yy';
|
| | 228 | case 21, formatstr = 'mmm.dd,yyyy HH:MM:SS';
|
| | 229 | case 22, formatstr = 'mmm.dd,yyyy';
|
| | 230 | case 23, formatstr = 'mm/dd/yyyy';
|
| | 231 | case 24, formatstr = 'dd/mm/yyyy';
|
| | 232 | case 25, formatstr = 'yy/mm/dd';
|
| | 233 | case 26, formatstr = 'yyyy/mm/dd';
|
| | 234 | case 27, formatstr = 'QQ-YYYY';
|
| | 235 | case 28, formatstr = 'mmmyyyy';
|
| | 236 | case 29, formatstr = 'yyyy-mm-dd';
|
| | 237 | case 30, formatstr = 'yyyymmddTHHMMSS';
|
| | 238 | case 31, formatstr = 'yyyy-mm-dd HH:MM:SS';
|
| | 239 | otherwise
|
| | 240 | error(message('MATLAB:datestr:DateNumber', num2str(dateform)));
|
< 0.001 | 20 | 241 | end
|
Other subfunctions in this file are not included in this listing.