linux时间戳转换成标准时间_linux获取毫秒时间戳

linux时间戳转换成标准时间_linux获取毫秒时间戳[lvhongmin@AY1401201736089361adZbin.gatemaster]$date2014年05月28日星期三11:24:59CST[lvhongmin@AY1401201736089361adZbin.gatemaster]$date+%s1401247504[lvhongmin@AY1401201736089361adZbin.gatemaster]…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ date

2014年 05月 28日 星期三 11:24:59 CST

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ date +%s

1401247504

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ date -d @1401247504

2014年 05月 28日 星期三 11:25:04 CST

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ awk ‘BEGIN{print systime()}’

1401247592

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ date -d @1401247592

2014年 05月 28日 星期三 11:26:32 CST

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$  date -d “@1401247592″ +”%Y%m%d %H:%M:%S”

20140528 11:26:32

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$  date -d “@1401247592″ +”%F %H:%M:%S”

2014-05-28 11:26:32

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$  date -d “1970-01-01 utc 1401247592 seconds”

2014年 05月 28日 星期三 11:26:32 CST

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$  echo “1401247592” |awk ‘{print strftime (“%F %T”,$0)}’

2014-05-28 11:26:32

[lvhongmin@AY1401201736089361adZ bin.gatemaster]$ perl -e ‘print localtime( 1401247592 ).”\n”;’

Wed May 28 11:26:32 2014

关于时间格式的解释 UTC  (Universal Time Coordinated,UTC)世界协调时间 CST  (China Standard Time UTC+8:00)中国沿海时间(北京时间) GMT  (Greenwich Mean Time)格林威治标准时间

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/186543.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号