What problem does it solve?
Date and time operations are error-prone when handled inconsistently across systems. This skill provides consistent utilities for scheduling, timezone conversion, and duration calculations.
Core Features & Use Cases
- Current Time and Timezone: Retrieve current time in ISO, Unix epoch, or human-friendly formats with optional timezone adjustment.
- Timezone Conversion: Convert a given datetime between timezones with accurate, readable output.
- Duration Calculations: Compute durations between two dates, with options for human-readable or unit-specific outputs.
- Use Case: Schedule reminders in a different timezone or compute time until a deadline.
Quick Start
To begin, run the included CLI scripts like now.js, convert.js, and duration.js to fetch the current time, convert sample dates, or calculate durations between two dates. For example:
- node now.js
- node convert.js "2024-01-15 10:00" --from UTC --to Europe/London
- node duration.js "2024-01-01" "2024-12-31"