default_test.go 340 B

1234567891011121314151617
  1. package test
  2. import (
  3. "fmt"
  4. "strings"
  5. "testing"
  6. "time"
  7. )
  8. // TestBeego is a sample to run an endpoint test
  9. func TestBeego(t *testing.T) {
  10. T_time_s := strings.Split("2022-11-15 00:00:00|2822-11-23 00:00:00", "|")
  11. println("T_time_s:", T_time_s[0])
  12. fmt.Println(time.ParseInLocation("2006-01-02 15:04:05", T_time_s[0], time.Local))
  13. }