本文介绍了git:时区和时间戳格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
2011-10-04 12:58:36 -0600
但有什么办法显示它:
2011-10-04 06:58:36
所以我只想摆脱-0600时区偏移量。我怎样才能做到这一点?感谢。
解决方案
如果您询问有关git log的信息,可以尝试从 git log --date = {relative,local,default,iso,rfc}
- date = local似乎是最好的候选人
From git I can get the timestamp:
"2011-10-04 12:58:36 -0600"
but is there any way to show it as:
"2011-10-04 06:58:36"
So all I want is to get rid of the -0600 timezone offset. How can I do this? Thanks.
解决方案
If you ask about git log, you can try and select most correct form from
git log --date={relative,local,default,iso,rfc}
--date=local seems as best candidate
这篇关于git:时区和时间戳格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!