DSH time tool plug-in
omdsh-dev/dsh-tool-time · tools
DSH time tool plug-in: strict ISO 8601 parsing, IANA time zone conversion, UTC calendar operation, fixed time difference, zero dependency
★ 5GitHub stars
0Forks
2026-08-14Last updated
TypeScriptLanguage
MITLicense
Key features
- Strict ISO 8601 subsetonly accepts YYYY-MM-DD (UTC zero), YYYY-MM-DDTHH:mm:ssZ, YYYY-MM-DDTHH:mm:ss±HH:MM (within ±14:00, optional .SSS milliseconds)
- add always operates on UTC (calendar day semantics, maintains "calendar day" intuition across DST)
- Date and time without time zone, RFC 2822, and natural language dates are all rejected
- Calendar overflows such as 2026-02-30 are rejected by table lookup verification (does not rely on silent normalization of Date)
- Time zone nameThe IANA name is submitted to Intl.DateTimeFormat for verification. If it is illegal, it will be thrown. time: unknown timezone
Requirements
- Consumption verificationtarball loads DSH 0.1.0-rc.6 (npm) consumer → dsh --profile compat --dump-config and this plug-in appears row → the actual registration and execution of the tool pass
Install command
dsh plugin --profile web add github:omdsh-dev/dsh-tool-time