time_parse_test.go 383 B

12345678910111213141516171819
  1. package time_parse
  2. import "testing"
  3. func TestRFC3339ToCSTLayout(t *testing.T) {
  4. t.Log(RFC3339ToCSTLayout("2020-11-08T08:18:46+08:00"))
  5. }
  6. func TestCSTLayoutString(t *testing.T) {
  7. t.Log(CSTLayoutString())
  8. }
  9. func TestCSTLayoutStringToUnix(t *testing.T) {
  10. t.Log(CSTLayoutStringToUnix("2020-01-24 21:11:11"))
  11. }
  12. func TestGMTLayoutString(t *testing.T) {
  13. t.Log(GMTLayoutString())
  14. }