MakeDTimestampTZ creates a DTimestampTZ with specified precision.
(t time.Time, precision time.Duration)
| 2901 | |
| 2902 | // MakeDTimestampTZ creates a DTimestampTZ with specified precision. |
| 2903 | func MakeDTimestampTZ(t time.Time, precision time.Duration) (_ *DTimestampTZ, err error) { |
| 2904 | if t, err = roundAndCheck(t, precision); err != nil { |
| 2905 | return nil, err |
| 2906 | } |
| 2907 | return &DTimestampTZ{Time: t}, nil |
| 2908 | } |
| 2909 | |
| 2910 | // MustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error. |
| 2911 | // This is intended for testing applications only. |
no test coverage detected
searching dependent graphs…