libf hace 2 años
padre
commit
073446e6f6
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. BIN
      msh/msh
  2. 3 0
      time/time_test.go

BIN
msh/msh


+ 3 - 0
time/time_test.go

@@ -96,4 +96,7 @@ func TestTruncate(tx *testing.T) {
 	fmt.Println(t.Format("2006-01-02 15:04:05.000000000"))
 	t = t.Truncate(24 * time.Hour)
 	fmt.Println(t.Format("2006-01-02 15:04:05.000000000"))
+	////
+	t = time.Now().Truncate(366 * 24 * time.Hour)
+	fmt.Println(t.Format("2006-01-02 15:04:05.000000000"))
 }