(input: string, scale: number)
| 89 | const DURATION_REGEX = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/ |
| 90 | |
| 91 | const parseNanos = (input: string, scale: number): bigint => |
| 92 | input.includes(".") ? BigInt(Math.round(Number(input) * scale)) : BigInt(input) * BigInt(scale) |
| 93 | |
| 94 | /** |
| 95 | * @since 2.0.0 |