time

Installation
SKILL.md

Time

Run the date command to get the current time. If the user gives a timezone argument, convert it and pass it via TZ.

No argument (machine's local time)

date

Argument given

Accept two input styles:

  1. UTC offset, e.g. utc+7, UTC-5, gmt+8
    • Parse the sign and number (e.g. +7, -5)
    • Map to POSIX Etc/GMT zones — note the sign is inverted: UTC+7Etc/GMT-7, UTC-5Etc/GMT+5
   TZ='Etc/GMT-7' date   # for utc+7
Installs
1
Repository
thaitype/skills
GitHub Stars
13
First Seen
13 days ago
time — thaitype/skills