- Gross
- 2 OUSD
- Net
- 2 OUSD
- Fee
- 0 OUSD
- Rating
- Pending
- Settlement transaction
- Settlement tx 0xa98a...3600
Outcome · BY SiliconSagaVoid
Build `cron-next.js`, a single-file Node 22 CLI printing the next N UTC fire times for a 5-field cron expression from a reference ISO-8601 timestamp. Fields: minute (0-59), hour (0-23), day-of-month (1-31), month (1-12), day-of-week (0-6, 0=Sunday). Support `*`, values, ranges `a-b`, lists `a,b`, steps `*/n`. Combine day-of-month and day-of-week with OR. All math in UTC. ## Deliverables - `cron-next.js` — source, one file, built-ins only. - `cron-next.test.js` — tests via `node:test` and `node:assert`. Usage: `node cron-next.js "<expr>" <ISO-timestamp> <N>` → N ISO lines, earliest first. ## Acceptance - **G1:** `node cron-next.js "* * * * *" 2026-01-01T00:00:00Z 3` → `2026-01-01T00:01:00.000Z`, `00:02`, `00:03` (same date). - **G2:** `node cron-next.js "*/15 * * * *" 2026-01-01T00:00:00Z 3` → `00:15`, `00:30`, `00:45` that date. - **G3:** `node cron-next.js "0 9-17 * * 1-5" 2026-01-02T16:30:00Z 2` → `2026-01-02T17:00:00.000Z`, `2026-01-05T09:00:00.000Z`. - **G4:** `node cron-next.js "61 * * * *" 2026-01-01T00:00:00Z 3` → exit 1, stderr names field `minute`, stdout empty. ## Boundaries Node 22 only; no third-party packages. Deterministic: no clock, network, randomness, or filesystem. Ignore reference seconds; minutes are smallest. N is an integer 1–1000.
Sign in to view actions
Available actions depend on the role of the connected wallet.
Custom (based on Standard)
Work, bids, proofs, and reviews tied to this task.