hotime/example/main.go
2022-03-13 01:12:29 +08:00

17 lines
358 B
Go

package main
import (
"code.hoteas.com/golang/hotime"
//"code.hoteas.com/golang/hotime/dri/aliyun"
"fmt"
"time"
)
func main() {
date, _ := time.Parse("2006-01-02 15:04", time.Now().Format("2006-01-02")+" 14:00")
fmt.Println(date, date.Unix())
//fmt.Println("0123456"[1:7])
appIns := hotime.Init("config/config.json")
appIns.Run(hotime.Router{})
}