go中时间范围比较

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

STR_TIME_FORMAT = "2006-01-02 15:04:05"
cstZone := time.FixedZone("CST", 8*3600)
sTime, _ := time.ParseInLocation(dao.STR_TIME_FORMAT, startTime, cstZone)
eTime, _ := time.ParseInLocation(dao.STR_TIME_FORMAT, endTime, cstZone)

 

转载于:https://my.oschina.net/u/3852748/blog/3043913

你可能感兴趣的:(go中时间范围比较)