func HourTimestamp() int64 {
    now := time.Now()
    timestamp := now.Unix() - int64(now.Second()) - int64((60 * now.Minute()))
    fmt.Println(timestamp, time.Unix(timestamp, 0), now.Unix())
    return timestamp
}



版权声明:本文为cto_scc原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/cto_scc/article/details/53538853