MCPcopy
hub / github.com/pocketbase/pocketbase / Before

Method Before

tools/types/datetime.go:66–68  ·  view source on GitHub ↗

Before reports whether the current DateTime instance is before u.

(u DateTime)

Source from the content-addressed store, hash-verified

64
65// Before reports whether the current DateTime instance is before u.
66func (d DateTime) Before(u DateTime) bool {
67 return d.Time().Before(u.Time())
68}
69
70// Compare compares the current DateTime instance with u.
71// If the current instance is before u, it returns -1.

Callers 1

TestDateTimeBeforeFunction · 0.80

Calls 1

TimeMethod · 0.95

Tested by 1

TestDateTimeBeforeFunction · 0.64