MakeDTimestampTZ creates a DTimestampTZ with specified precision.
(t time.Time, precision time.Duration)
| 2348 | |
| 2349 | // MakeDTimestampTZ creates a DTimestampTZ with specified precision. |
| 2350 | func MakeDTimestampTZ(t time.Time, precision time.Duration) *DTimestampTZ { |
| 2351 | return &DTimestampTZ{Time: t.Round(precision)} |
| 2352 | } |
| 2353 | |
| 2354 | // MakeDTimestampTZFromDate creates a DTimestampTZ from a DDate. |
| 2355 | // This will be equivalent to the midnight of the given zone. |
no test coverage detected
searching dependent graphs…