Finish the logger maintain work.

This commit is contained in:
zicla
2018-11-30 22:14:40 +08:00
parent 1bdfb4996e
commit 3f668dcc4b
3 changed files with 31 additions and 29 deletions

View File

@ -30,13 +30,13 @@ func FirstSecondOfDay(day time.Time) time.Time {
//明天此刻的时间
func Tomorrow() time.Time {
tomorrow := time.Now()
tomorrow.AddDate(0, 0, 1)
tomorrow = tomorrow.AddDate(0, 0, 1)
return tomorrow
}
//昨天此刻的时间
func Yesterday() time.Time {
tomorrow := time.Now()
tomorrow.AddDate(0, 0, -1)
tomorrow = tomorrow.AddDate(0, 0, -1)
return tomorrow
}