tour icon indicating copy to clipboard operation
tour copied to clipboard

P17页layout错误

Open RedmondY opened this issue 3 years ago • 1 comments

result1: go run .\main.go time calc -c='2029-09-04 12:02:33' -d=2m 2021/10/23 17:12:47 输出结果: 1970-01-01 08:02, 120 result2: go run .\main.go time calc -c='2029-09-04 12:02' -d=2m
2021/10/23 17:13:03 输出结果: 2029-09-04 12:04, 1883217840

var layout = "2006-01-02 15:04:05" 此为默认layout 但是后续分割space=1 则变为layout = "2006-01-02 15:04", p18验证会出错

RedmondY avatar Oct 23 '21 09:10 RedmondY

他那个space应该是计算:的个数,这样改就合理了

coder279 avatar Nov 02 '21 03:11 coder279