This is a static copy of a profile report

Home

datestr>getdateform (Calls: 20, Time: 0.001 s)
Generated 16-Jul-2020 17:09:37 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/timefun/datestr.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
datestrfunction20
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
207
case 0,  formatstr = 'dd-mmm-y...
200.000 s13.4%
241
end 
200.000 s1.1%
206
case -1, formatstr = 'dd-mmm-y...
200.000 s0.3%
205
switch dateform
200.000 s0.2%
All other lines  0.001 s85.2%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function39
Non-code lines (comments, blank lines)2
Code lines (lines that can run)37
Code lines that did run4
Code lines that did not run33
Coverage (did run/can run)10.81 %
Function listing
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.