libf 2 vuotta sitten
vanhempi
commit
073446e6f6
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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"))
 }