test&doc: add example and update doc for datetime package

This commit is contained in:
dudaodong committed 2023-01-08 20:16:04 +08:00
1 parent f1afd753d4
commit bc0ee08f38
8 files changed
+581 -107

No files matched your search

-3
View File
@@ -19,9 +19,6 @@ func TestToUnix(t *testing.T) {
func TestToFormat(t *testing.T) {
assert := internal.NewAssert(t, "TestToFormat")
_, err := NewFormat("2022/03/18 17:04:05")
assert.IsNotNil(err)
tm, err := NewFormat("2022-03-18 17:04:05")
assert.IsNil(err)