agentleFS
ShaunTsaiShaunTsai/skill-current-time/SKILL.md

current-time

Skill1 starsChanged 10 months agoMITView on GitHub

Get the current date, time, and timezone information using portable command-line tools. Use when the user asks about the current time, date, timezone, epoch timestamp, or needs time-related information for scripting, logging, or debugging. Triggers on keywords like time, date, clock, timezone, epoch, timestamp, now, today, UTC.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. HybridAIOne/hybridclaw★ 157same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All specifiers above are POSIX-defined and portable across systems.

    line 148

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Current Time Skill

Overview

This skill provides accurate current time and timezone information using the POSIX date command. No external dependencies required. Works on macOS, Linux, FreeBSD, and any POSIX-compliant system.

Capabilities

  • Display current date and time with timezone
  • Show timezone name and UTC offset
  • Provide epoch (Unix) timestamps
  • Format time in ISO 8601
  • Convert between display formats
  • Determine system timezone configuration

Getting the Current Time

ISO 8601 with timezone offset (recommended default)

date '+%Y-%m-%dT%H:%M:%S%z'

Output: 2026-02-12T00:00:57+0800

Human-readable with timezone name

date '+%Y-%m-%d %H:%M:%S %Z (%z)'

Output: 2026-02-12 00:00:57 CST (+0800)

Date only

date '+%Y-%m-%d'

Time only with timezone

date '+%H:%M:%S %Z'

Epoch / Unix Timestamps

Seconds since epoch

date '+%s'

Convert epoch back to human-readable

macOS / BSD:

date -r 1770825618 '+%Y-%m-%dT%H:%M:%S%z'

Linux / GNU:

date -d @1770825618 '+%Y-%m-%dT%H:%M:%S%z'

Timezone Information

Current timezone name and offset

date '+%Z %z'

Output: CST +0800

System timezone (macOS)

ls -la /etc/localtime

Shows the symlink target, e.g. /var/db/timezone/zoneinfo/Asia/Taipei

System timezone (Linux)

cat /etc/timezone 2>/dev/null || timedatectl show -p Timezone --value 2>/dev/null || ls -la /etc/localtime

UTC Time

date -u '+%Y-%m-%dT%H:%M:%SZ'

Output: 2026-02-11T16:00:57Z


Day of Week

date '+%A'

Output: Thursday


Common Format Strings Reference

FormatSpecifierExample
ISO 8601+%Y-%m-%dT%H:%M:%S%z2026-02-12T00:00:57+0800
Date only+%Y-%m-%d2026-02-12
Time only+%H:%M:%S00:00:57
Epoch+%s1770825657
Day name+%AThursday
UTC-u +%Y-%m-%dT%H:%M:%SZ2026-02-11T16:00:57Z
Readable+%Y-%m-%d %H:%M:%S %Z2026-02-12 00:00:57 CST

All specifiers above are POSIX-defined and portable across systems.

Edge Cases

  • %z offset has no colon: macOS and most systems output +0800 not +08:00. This is normal and widely accepted.
  • Timezone abbreviations can be ambiguous: CST could mean Central Standard Time (US) or China Standard Time. When precision matters, use the numeric offset %z instead.
  • Epoch conversion differs: macOS uses date -r EPOCH, GNU/Linux uses date -d @EPOCH. Check which system you're on.
  • No sub-second precision needed: This skill targets second-level accuracy. For milliseconds/nanoseconds, consider date '+%N' (GNU/FreeBSD 14.1+/macOS Sequoia+) or python3.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.