Index of every page on this site: llms.txt
All skills
dianel555 avatar

/time

@fa935e6
by dianeldianel555/dskills64 stars
8
Run it yourself

Time and timezone utilities for getting current time and converting between timezones. Use when: (1) Getting current time in any timezone, (2) Converting time between different timezones, (3) Working with IANA timezone names, (4) Scheduling across timezones, (5) Time-sensitive operations. Triggers: "what time is it", "current time", "convert time", "timezone", "time in [city]".

Use this Skill: https://skilld.dev/gh/dianel555/dskills/time

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈97 tokens for metadata: the name and description. ≈666 when used: this file. ≈159 more on demand in 1 file.

Description uses 4.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈387 characters, or 4.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Time

Time and timezone conversion utilities. Standalone CLI only (no MCP dependency).

Execution Methods

Run scripts/time_cli.py via Bash:

# Prerequisites: pip install pytz (or use Python 3.9+ with zoneinfo)

# Get current time in a timezone
python scripts/time_cli.py get --timezone "Asia/Shanghai"
python scripts/time_cli.py get --timezone "America/New_York"
python scripts/time_cli.py get  # Uses system timezone

# Convert time between timezones
python scripts/time_cli.py convert \
  --time "16:30" \
  --from "America/New_York" \
  --to "Asia/Tokyo"

# List available timezones
python scripts/time_cli.py list [--filter "Asia"]

Tool Capability Matrix

Tool Parameters Output
get_current_time timezone (required, IANA name) {timezone, datetime, is_dst}
convert_time source_timezone, time (HH:MM), target_timezone {source, target, time_difference}

Common IANA Timezone Names

Region Timezone
China Asia/Shanghai
Japan Asia/Tokyo
Korea Asia/Seoul
US East America/New_York
US West America/Los_Angeles
UK Europe/London
Germany Europe/Berlin
France Europe/Paris
Australia Australia/Sydney
UTC UTC

Workflow

Getting Current Time

  1. Identify target timezone (use IANA name)
  2. Call get_current_time with timezone parameter
  3. Response includes ISO 8601 datetime and DST status

Converting Time

  1. Identify source timezone and time (24-hour format HH:MM)
  2. Identify target timezone
  3. Call convert_time with all parameters
  4. Response includes both times and time difference

Output Format

get_current_time Response

{
  "timezone": "Asia/Shanghai",
  "datetime": "2024-01-01T21:00:00+08:00",
  "is_dst": false
}

convert_time Response

{
  "source": {
    "timezone": "America/New_York",
    "datetime": "2024-01-01T16:30:00-05:00",
    "is_dst": false
  },
  "target": {
    "timezone": "Asia/Tokyo",
    "datetime": "2024-01-02T06:30:00+09:00",
    "is_dst": false
  },
  "time_difference": "+14.0h"
}

Error Handling

Error Recovery
Invalid timezone Check IANA timezone name spelling
Invalid time format Use 24-hour format HH:MM
MCP unavailable Fall back to CLI script

Anti-Patterns

Prohibited Correct
Use city names directly Use IANA timezone names (e.g., Asia/Tokyo not Tokyo)
Use 12-hour format Use 24-hour format (e.g., 16:30 not 4:30 PM)
Assume timezone Always specify timezone explicitly

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning9mo4 checks · Risk LOW
  • Gen Agent Trust Hub9mo

    The skill provides standard timezone conversion and retrieval utilities using a local Python script and the well-known pytz library. No malicious code, obfuscation, or safety violations were detected.

  • Socket9mo

    No alerts

  • Snyk9mo

    Risk: LOW · No issues

  • Runlayer9mo

    3/3 files flagged

Signed by skilld at fa935e6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 10 months ago

README badge

README badge for dianel555/dskills/time