MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / Add

Method Add

tools/types/datetime.go:39–42  ·  view source on GitHub ↗

Add returns a new DateTime based on the current DateTime + the specified duration.

(duration time.Duration)

Source from the content-addressed store, hash-verified

37
38// Add returns a new DateTime based on the current DateTime + the specified duration.
39func (d DateTime) Add(duration time.Duration) DateTime {
40 d.t = d.t.Add(duration)
41 return d
42}
43
44// Sub returns a [time.Duration] by subtracting the specified DateTime from the current one.
45//

Callers 1

TestDateTimeAddFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestDateTimeAddFunction · 0.36