Back to catalog

uckkk /

uckkk/dsh-date-calc

Verified

日期计算:日期间隔/加减/星期几

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@b948c273

dsh-date-calc · 日期计算

日期间隔、日期加减、星期几。纯 Node 实现。

提供的工具

工具 作用
date_diff 日期间隔
date_add 日期加减
weekday 星期几

安装

dsh plugin add dsh-date-calc

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-date-calc"。

用法示例

2026-08-16 到 2026-09-01 相隔多少天
→ 调用 date_diff(from="2026-08-16", to="2026-09-01")

安装

dsh plugin add github:uckkk/dsh-date-calc

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-date-calc

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。

—/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.