dsh-timestamp
文件与数据 活跃维护

dsh-timestamp

uckkk/dsh-timestamp

支持Unix时间戳、ISO 8601标准时间、自然语言相对时间三者双向互转,输入任意格式时间即可秒出其余两种格式结果,轻量无冗余功能,无需手动换算即可快速完成不同时间格式的转换。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-timestamp
git clone https://github.com/uckkk/dsh-timestamp.git
git clone git@github.com:uckkk/dsh-timestamp.git
README.md main

dsh-timestamp · 时间戳转换

Unix 时间戳 ↔ ISO 8601 ↔ 相对时间互转,获取当前时间。纯 Node 实现。

提供的工具

工具 作用
timestamp_convert 时间戳/ISO/相对时间互转
timestamp_now 当前时间戳

安装

dsh plugin add dsh-timestamp

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

用法示例

1700000000 这个时间戳是什么时候
→ 调用 timestamp_convert(value=1700000000)

安装

dsh plugin add github:uckkk/dsh-timestamp

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

安装

dsh plugin add github:uckkk/dsh-timestamp

使用

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

许可

MIT

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