(num, digits, trim)
| 17218 | } |
| 17219 | |
| 17220 | function padNumber(num, digits, trim) { |
| 17221 | var neg = ''; |
| 17222 | if (num < 0) { |
| 17223 | neg = '-'; |
| 17224 | num = -num; |
| 17225 | } |
| 17226 | num = '' + num; |
| 17227 | while (num.length < digits) num = '0' + num; |
| 17228 | if (trim) |
| 17229 | num = num.substr(num.length - digits); |
| 17230 | return neg + num; |
| 17231 | } |
| 17232 | |
| 17233 | |
| 17234 | function dateGetter(name, size, offset, trim) { |
no outgoing calls
no test coverage detected