mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
17 lines
387 B
Go
17 lines
387 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/g/os/glog"
|
|
"github.com/gogf/gf/g/os/gtime"
|
|
)
|
|
|
|
func main() {
|
|
Time := gtime.Now().AddDate(0, -1, 0).Format("Y-m")
|
|
glog.Debug(Time)
|
|
Time = gtime.Now().AddDate(0, -2, 0).Format("Y-m")
|
|
glog.Debug(Time)
|
|
Time = gtime.Now().AddDate(0, -3, 0).Format("Y-m")
|
|
glog.Debug(Time)
|
|
Time = gtime.Now().AddDate(0, -4, 0).Format("Y-m")
|
|
glog.Debug(Time)
|
|
} |