关闭
Hit
enter
to search or
ESC
to close
May I Suggest ?
#leanote #leanote blog #code #hello world
柯仓无居所
Home
Archives
Tags
Search
Linux 中通过shell获取时间戳精确到毫秒
? 时间戳 ?
1568
0
0
swimming
? 时间戳 ?
> Linux中写shell时经常需要写入日志,日志的时间戳有时候需要精确到毫秒,其具体写法如下: ```bash date +%Y-%m-%d' '%H:%M:%S.%N | cut -b 1-23 ``` 参考 [Linux系统shell命令date获取时间精确到毫秒](https://blog.csdn.net/YJREGD/article/details/106494057?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control)
觉得不错,点个赞?
提交评论
Sign in
to leave a comment.
No Leanote account ?
Sign up now
.
0
条评论
More...
文章目录
No Leanote account ? Sign up now.