6个版本 (3个破坏性版本)
0.4.2 | 2024年5月28日 |
---|---|
0.4.1 | 2024年5月28日 |
0.3.0 | 2024年5月28日 |
0.2.0 | 2024年5月28日 |
0.1.0 | 2021年4月7日 |
#66 在 日期和时间
每月下载量 103次
8KB
148 行
每次
et
是一个用于处理日期和时间的命令行程序
$ et now # prints current local time
2021-04-06 23:20:45.281102 -05:00
$ et now -e # prints current Epoch time
1617769538
$ et now UTC # prints current UTC time
2021-04-07 04:21:08.630195 UTC
$ et now Europe/London # prints current time at a timezone
2021-04-07 04:21:08.630195 UTC
$ et parse 1617767254 # parses an epoch timestamp
2021-04-06T22:47:34-05:00
待办事项
- 显示常用时区的时间
- 更好地匹配时区(大小写,仅城市匹配)
- 解析时处理微/纳秒
- 类型1 UUID解析
依赖
~2.8–4MB
~65K SLoC