(num, digits, trim)
| 18598 | } |
| 18599 | |
| 18600 | function padNumber(num, digits, trim) { |
| 18601 | var neg = ''; |
| 18602 | if (num < 0) { |
| 18603 | neg = '-'; |
| 18604 | num = -num; |
| 18605 | } |
| 18606 | num = '' + num; |
| 18607 | while (num.length < digits) num = '0' + num; |
| 18608 | if (trim) { |
| 18609 | num = num.substr(num.length - digits); |
| 18610 | } |
| 18611 | return neg + num; |
| 18612 | } |
| 18613 | |
| 18614 | |
| 18615 | function dateGetter(name, size, offset, trim) { |
no outgoing calls
no test coverage detected