Skip to content
dsh.fish
Bundle

dsh-date-calc

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

Source
uckkk
License
MIT
Updated
Updated 20 days ago

Readme

# dsh-date-calc · 日期计算

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

## 提供的工具

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

## 安装

```bash
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")
```

## 安装

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

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

## 安装

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

## 使用

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

## 许可

MIT

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

Install

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

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source