datetime

Parse, convert, and format dates using JavaScript Date and Intl APIs.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/sahiixx/moltworker --skill datetime-sahiixx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datetime
Source: https://github.com/sahiixx/moltworker/tree/main/skills/datetime
Command: npx skills add https://github.com/sahiixx/moltworker --skill datetime-sahiixx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

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"

Frequently Asked Questions about datetime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a date between timezones in JavaScript?

You can convert a date between timezones in JavaScript using the provided CLI scripts like convert.js. Pass the source datetime, the origin timezone, and the target timezone to receive an accurate, human-readable output.

What is the best way to calculate duration between two dates?

The best way to calculate duration between two dates is using the duration.js script, which computes the time difference and returns either human-readable outputs or specific time units based on your parameters.

How do I get the current time in a specific timezone format?

Retrieve the current time in a specific timezone format by running the now.js script. It fetches the current time and provides outputs in ISO, Unix epoch, or human-friendly formats with optional timezone adjustment.

Does this date-time utility require external libraries to parse ISO formats?

This date-time utility does not require external libraries to parse ISO formats. It relies entirely on built-in JavaScript Date and Intl APIs to handle parsing, timezone-aware formatting, and duration outputs.

Can I use these scripts for scheduling reminders across different timezones?

You can use these scripts for scheduling reminders across different timezones. The utilities support timezone conversion and duration calculations, allowing you to accurately trigger reminders based on a target region's local time.