Skip to content
New issue

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错误 #10

Open
nsl1065539573 opened this issue Nov 26, 2020 · 3 comments
Open

time.go错误 #10

nsl1065539573 opened this issue Nov 26, 2020 · 3 comments

Comments

@nsl1065539573
Copy link

time.go layout赋值错误,导致秒级以下运算出错,已提PR

@taoyao-code
Copy link

layout = "2006-01-02 15:04" 修改为 layout = "2006-01-02 15:04:05"

@zhangzw001
Copy link

默认layout就是秒, 显然这里目的就是显示为分钟

这里作者应该是想判断 冒号":"的个数, 而不是空格的个数

@shrimpPaste
Copy link

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的时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants