Go语言中文网 为您找到相关结果 151

[Go - Basic] Time相关

import "time" 类型 type Time struct { wall uint64 ext int64 loc *Location } type Month int type Weekday int type Duration int64 常用函数和方法 函数: Now() Time 当前Time Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time //返回一个设置的time类型 Since(t Time) Duration //time.Now().Sub(t) Unix(sec int64, nsec int64) Time // 时间戳转时间 1sec = 1nsec ...阅读全文

博文 2019-12-06 11:32:38 Arboat