MCPcopy
hub / github.com/pocketbase/pocketbase / Time

Method Time

tools/types/datetime.go:34–36  ·  view source on GitHub ↗

Time returns the internal [time.Time] instance.

()

Source from the content-addressed store, hash-verified

32
33// Time returns the internal [time.Time] instance.
34func (d DateTime) Time() time.Time {
35 return d.t
36}
37
38// Add returns a new DateTime based on the current DateTime + the specified duration.
39func (d DateTime) Add(duration time.Duration) DateTime {

Callers 15

SubMethod · 0.95
AfterMethod · 0.95
BeforeMethod · 0.95
CompareMethod · 0.95
EqualMethod · 0.95
UnixMethod · 0.95
IsZeroMethod · 0.95
StringMethod · 0.95
ScanMethod · 0.80
TestDateTimeTimeFunction · 0.80
HasExpiredMethod · 0.80
ValidateValueMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestDateTimeTimeFunction · 0.64
TestRecordGetDateTimeFunction · 0.64