refract(os/gtime): swap function names between Format and Layout (#4275)

This commit is contained in:
John Guo
2025-05-10 14:19:55 +08:00
committed by GitHub
parent 1f2fcd39b1
commit c5a90d93a7
26 changed files with 272 additions and 272 deletions

View File

@ -400,7 +400,7 @@ func Test_Convert2(t *testing.T) {
t.Assert(j.Get("name").IsNil(), false)
t.Assert(j.Len("name1"), -1)
t.Assert(j.Get("time").Time().Format("2006-01-02"), "2019-06-12")
t.Assert(j.Get("time").GTime().Format("Y-m-d"), "2019-06-12")
t.Assert(j.Get("time").GTime().Layout("Y-m-d"), "2019-06-12")
t.Assert(j.Get("time").Duration().String(), "0s")
err := j.Var().Scan(&name)