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