MCPcopy
hub / github.com/pocketbase/pocketbase / IsZero

Method IsZero

tools/types/datetime.go:92–94  ·  view source on GitHub ↗

IsZero checks whether the current DateTime instance has zero time value.

()

Source from the content-addressed store, hash-verified

90
91// IsZero checks whether the current DateTime instance has zero time value.
92func (d DateTime) IsZero() bool {
93 return d.Time().IsZero()
94}
95
96// String serializes the current DateTime instance into a formatted
97// UTC date string.

Callers 8

TestDateTimeIsZeroFunction · 0.95
StringMethod · 0.80
FetchAuthUserMethod · 0.80
signMethod · 0.80
ValidateValueMethod · 0.80
checkRangeMethod · 0.80
getLastKnownValueMethod · 0.80
logRequestFunction · 0.80

Calls 1

TimeMethod · 0.95

Tested by 1

TestDateTimeIsZeroFunction · 0.76