MCPcopy
hub / github.com/pocketbase/pocketbase / GetDateTime

Method GetDateTime

core/record_model.go:968–971  ·  view source on GitHub ↗

GetDateTime returns the data value for "key" as a DateTime instance.

(key string)

Source from the content-addressed store, hash-verified

966
967// GetDateTime returns the data value for "key" as a DateTime instance.
968func (m *Record) GetDateTime(key string) types.DateTime {
969 d, _ := types.ParseDateTime(m.Get(key))
970 return d
971}
972
973// GetGeoPoint returns the data value for "key" as a GeoPoint instance.
974func (m *Record) GetGeoPoint(key string) types.GeoPoint {

Callers 14

TestRecordGetDateTimeFunction · 0.95
CreatedMethod · 0.80
UpdatedMethod · 0.80
CreatedMethod · 0.80
UpdatedMethod · 0.80
InterceptMethod · 0.80
getLastKnownValueMethod · 0.80
TestRecordFreshFunction · 0.80
TestRecordCloneFunction · 0.80
CreatedMethod · 0.80
UpdatedMethod · 0.80
CreatedMethod · 0.80

Calls 2

GetMethod · 0.95
ParseDateTimeFunction · 0.92

Tested by 4

TestRecordGetDateTimeFunction · 0.76
TestRecordFreshFunction · 0.64
TestRecordCloneFunction · 0.64
TestAutodateRecordResaveFunction · 0.64