如何在我的时区中使用hg log show commit timestamps

时间:2012-08-26 23:04:54

标签: mercurial

hg log默认显示提交时区的提交时间戳。是否可以使其显示特定时区的时间戳?

理想情况下,解决方案不需要任何外部工具。

1 个答案:

答案 0 :(得分:3)

hg log --template "{date|localdate|rfc822date}\n"

因此,您可以根据rfc822

获取日期,将其转换为本地格式
相关问题