|
@@ -2,6 +2,7 @@ package controllers
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
+ "fmt"
|
|
|
"hongze/hongze_cygx/models"
|
|
|
"hongze/hongze_cygx/services"
|
|
|
"hongze/hongze_cygx/utils"
|
|
@@ -306,3 +307,13 @@ func (this *ReportSelectionController) AddStopTime() {
|
|
|
br.Success = true
|
|
|
br.Msg = "操作成功"
|
|
|
}
|
|
|
+
|
|
|
+func init() {
|
|
|
+ st, _ := time.ParseDuration("-500s")
|
|
|
+ fmt.Println(st)
|
|
|
+ fmt.Println()
|
|
|
+ fmt.Println("50秒之后的时间:", time.Now().Add(st))
|
|
|
+
|
|
|
+ startDate := time.Now().Add(-time.Second * 300).Format(utils.FormatDateTime)
|
|
|
+ fmt.Println(startDate)
|
|
|
+}
|