aditor
一个简单的时间计算工具库,支持:
- 时间加法:
add_seconds(timestamp, seconds) - 时间减法:
sub_seconds(timestamp, seconds) - 时间差值:
diff_seconds(ts1, ts2)
安装
在你的 Cargo.toml 中添加:
[]
= "0.1"
使用
use ;
许可证
MIT OR Apache-2.0
一个简单的时间计算工具库,支持:
add_seconds(timestamp, seconds)sub_seconds(timestamp, seconds)diff_seconds(ts1, ts2)在你的 Cargo.toml 中添加:
[]
= "0.1"
use ;
MIT OR Apache-2.0