We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time.go layout赋值错误,导致秒级以下运算出错,已提PR
The text was updated successfully, but these errors were encountered:
layout = "2006-01-02 15:04" 修改为 layout = "2006-01-02 15:04:05"
Sorry, something went wrong.
默认layout就是秒, 显然这里目的就是显示为分钟
这里作者应该是想判断 冒号":"的个数, 而不是空格的个数
go run main.go time calc -c="2022-03-07 10:33:32" -d=5m 2022/03/07 10:37:25 输出结果: 1970-01-01 08:05, 300 已经把代码都copy下来了任然是1970的时间
No branches or pull requests
time.go layout赋值错误,导致秒级以下运算出错,已提PR
The text was updated successfully, but these errors were encountered: