MCPcopy Index your code
hub / github.com/TruthHun/BookStack / getMonth

Function getMonth

models/base.go:276–281  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

274}
275
276func getMonth(t time.Time) (start, end string) {
277 month := time.Date(t.Year(), t.Month(), 1, 0, 0, 0, 0, time.Local)
278 start = month.Format(dateFormat)
279 end = month.AddDate(0, 1, 0).Add(-24 * time.Hour).Format(dateFormat)
280 return
281}

Callers 1

getTimeRangeFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected