(time: string)
| 228 | ): number => Math.abs(deadline.diff(extremeDeadline, "hours")); |
| 229 | |
| 230 | export const validTime = (time: string): boolean => { |
| 231 | return /^[0-9][0-9]:[0-9][0-9]$/.test(time); |
| 232 | }; |
| 233 | |
| 234 | export const timeToCron = (time: string, tz?: string) => { |
| 235 | if (!validTime(time)) { |
no outgoing calls
no test coverage detected