MCPcopy
hub / github.com/pocketbase/pocketbase / Equal

Method Equal

tools/types/datetime.go:81–83  ·  view source on GitHub ↗

Equal reports whether the current DateTime and u represent the same time instant. Two DateTime can be equal even if they are in different locations. For example, 6:00 +0200 and 4:00 UTC are Equal.

(u DateTime)

Source from the content-addressed store, hash-verified

79// Two DateTime can be equal even if they are in different locations.
80// For example, 6:00 +0200 and 4:00 UTC are Equal.
81func (d DateTime) Equal(u DateTime) bool {
82 return d.Time().Equal(u.Time())
83}
84
85// Unix returns the current DateTime as a Unix time, aka.
86// the number of seconds elapsed since January 1, 1970 UTC.

Callers

nothing calls this directly

Calls 2

TimeMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected