MCPcopy
hub / github.com/duke-git/lancet / ExampleGetNowDate

Function ExampleGetNowDate

datetime/datetime_example_test.go:147–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func ExampleGetNowDate() {
148 result := GetNowDate()
149
150 expected := time.Now().Format("2006-01-02")
151
152 fmt.Println(result == expected)
153
154 // Output:
155 // true
156}
157
158func ExampleGetNowTime() {
159 result := GetNowTime()

Callers

nothing calls this directly

Calls 2

GetNowDateFunction · 0.85
FormatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…