ParseDTimestampTZ parses and returns the *DTimestampTZ Datum value represented by the provided string in the provided location, or an error if parsing is unsuccessful.
( ctx ParseTimeContext, s string, precision time.Duration, )
| 2367 | // ParseDTimestampTZ parses and returns the *DTimestampTZ Datum value represented by |
| 2368 | // the provided string in the provided location, or an error if parsing is unsuccessful. |
| 2369 | func ParseDTimestampTZ( |
| 2370 | ctx ParseTimeContext, s string, precision time.Duration, |
| 2371 | ) (*DTimestampTZ, error) { |
| 2372 | now := relativeParseTime(ctx) |
| 2373 | t, err := pgdate.ParseTimestamp(now, pgdate.ParseModeYMD, s) |
| 2374 | if err != nil { |
| 2375 | return nil, err |
| 2376 | } |
| 2377 | // Always normalize time to the current location. |
| 2378 | return MakeDTimestampTZ(t, precision), nil |
| 2379 | } |
| 2380 | |
| 2381 | var dMinTimestampTZ = &DTimestampTZ{} |
| 2382 |
no test coverage detected
searching dependent graphs…