doujian7132 2015-12-14 05:06
浏览 846
已采纳

获取下一个小时的时间戳

How can I get the timestamp of the next hour?

Example: Something expires in 1 hours, so it would be time.Now() plus one hour

How can I do this?

Thanks!

  • 写回答

1条回答 默认 最新

  • douyan1970 2015-12-14 05:10
    关注

    time.Now().Add(time.Hour)

    playground

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?