File tree 2 files changed +26
-26
lines changed
plotly/plotlyfig_aux/helpers
2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 1
- function convertedDate = convertDate(date )
2
- date.Format = ' yyyy-MM-dd HH:mm:ss' ;
3
- convertedDate = char(date );
1
+ function convertedDate = convertDate(date )
2
+ date.Format = ' yyyy-MM-dd HH:mm:ss' ;
3
+ convertedDate = char(date );
4
4
end
Original file line number Diff line number Diff line change 1
- function [converted ,type ] = convertDuration(duration )
2
- switch (duration .Format )
3
- case ' s'
4
- converted = seconds(duration );
5
- type = ' sec' ;
6
- case ' m'
7
- converted = minutes(duration );
8
- type = ' min' ;
9
- case ' h'
10
- converted = hours(duration );
11
- type = ' hr' ;
12
- case ' d'
13
- converted = days(duration );
14
- type = ' days' ;
15
- case ' y'
16
- converted = years(duration );
17
- type = ' yrs' ;
18
- otherwise
19
- % no convertion is applied
20
- converted = duration ;
21
- type = ' ' ;
22
-
23
- end
1
+ function [converted ,type ] = convertDuration(duration )
2
+ switch (duration .Format )
3
+ case ' s'
4
+ converted = seconds(duration );
5
+ type = ' sec' ;
6
+ case ' m'
7
+ converted = minutes(duration );
8
+ type = ' min' ;
9
+ case ' h'
10
+ converted = hours(duration );
11
+ type = ' hr' ;
12
+ case ' d'
13
+ converted = days(duration );
14
+ type = ' days' ;
15
+ case ' y'
16
+ converted = years(duration );
17
+ type = ' yrs' ;
18
+ otherwise
19
+ % no convertion is applied
20
+ converted = duration ;
21
+ type = ' ' ;
22
+
23
+ end
24
24
end
You can’t perform that action at this time.
0 commit comments