ParseDTimeTZ parses and returns the *DTime Datum value represented by the provided string, or an error if parsing is unsuccessful.
(ctx ParseTimeContext, s string, precision time.Duration)
| 2047 | // ParseDTimeTZ parses and returns the *DTime Datum value represented by the |
| 2048 | // provided string, or an error if parsing is unsuccessful. |
| 2049 | func ParseDTimeTZ(ctx ParseTimeContext, s string, precision time.Duration) (*DTimeTZ, error) { |
| 2050 | now := relativeParseTime(ctx) |
| 2051 | d, err := timetz.ParseTimeTZ(now, s, precision) |
| 2052 | if err != nil { |
| 2053 | return nil, err |
| 2054 | } |
| 2055 | return NewDTimeTZ(d), nil |
| 2056 | } |
| 2057 | |
| 2058 | // ResolvedType implements the TypedExpr interface. |
| 2059 | func (*DTimeTZ) ResolvedType() *types.T { |
no test coverage detected
searching dependent graphs…