MCPcopy
hub / github.com/tidwall/gjson / Time

Method Time

gjson.go:192–195  ·  view source on GitHub ↗

Time returns a time.Time representation.

()

Source from the content-addressed store, hash-verified

190
191// Time returns a time.Time representation.
192func (t Result) Time() time.Time {
193 res, _ := time.Parse(time.RFC3339, t.String())
194 return res
195}
196
197// Array returns back an array of values.
198// If the result represents a null value or is non-existent, then an empty

Callers 1

TestTimeResultFunction · 0.80

Calls 1

StringMethod · 0.95

Tested by 1

TestTimeResultFunction · 0.64