EvalAtTimeZone evaluates this TimestampTZ as if it were in the supplied location, returning a timestamp without a timezone.
(ctx *EvalContext, loc *time.Location)
| 2490 | // EvalAtTimeZone evaluates this TimestampTZ as if it were in the supplied |
| 2491 | // location, returning a timestamp without a timezone. |
| 2492 | func (d *DTimestampTZ) EvalAtTimeZone(ctx *EvalContext, loc *time.Location) *DTimestamp { |
| 2493 | _, locOffset := d.Time.In(loc).Zone() |
| 2494 | t := d.Time.UTC().Add(time.Duration(locOffset) * time.Second).UTC() |
| 2495 | return MakeDTimestamp(t, time.Microsecond) |
| 2496 | } |
| 2497 | |
| 2498 | // DInterval is the interval Datum. |
| 2499 | type DInterval struct { |
no test coverage detected