(num, digits, trim)
| 16948 | } |
| 16949 | |
| 16950 | function padNumber(num, digits, trim) { |
| 16951 | var neg = ''; |
| 16952 | if (num < 0) { |
| 16953 | neg = '-'; |
| 16954 | num = -num; |
| 16955 | } |
| 16956 | num = '' + num; |
| 16957 | while (num.length < digits) num = '0' + num; |
| 16958 | if (trim) |
| 16959 | num = num.substr(num.length - digits); |
| 16960 | return neg + num; |
| 16961 | } |
| 16962 | |
| 16963 | |
| 16964 | function dateGetter(name, size, offset, trim) { |
no outgoing calls
no test coverage detected