timestamp := int64(1591271169)
# 12小时制
time.Unix(timestamp, 0).Format("2006-01-02 03:04:05")
# 24小时制
time.Unix(timestamp, 0).Format("2006-01-02 15:04:05")
Link:https://www.cnblogs.com/farwish/p/13045730.html
2024-02-23 21:31:34
timestamp := int64(1591271169)
# 12小时制
time.Unix(timestamp, 0).Format("2006-01-02 03:04:05")
# 24小时制
time.Unix(timestamp, 0).Format("2006-01-02 15:04:05")
Link:https://www.cnblogs.com/farwish/p/13045730.html