(date: Date, token: string)
| 82 | |
| 83 | // Fraction of second |
| 84 | S(date: Date, token: string): string { |
| 85 | const numberOfDigits = token.length; |
| 86 | const milliseconds = date.getMilliseconds(); |
| 87 | const fractionalSeconds = Math.trunc( |
| 88 | milliseconds * Math.pow(10, numberOfDigits - 3), |
| 89 | ); |
| 90 | return addLeadingZeros(fractionalSeconds, token.length); |
| 91 | }, |
| 92 | }; |
nothing calls this directly
no test coverage detected