MakeDTimestamp creates a DTimestamp with specified precision.
(t time.Time, precision time.Duration)
| 2138 | |
| 2139 | // MakeDTimestamp creates a DTimestamp with specified precision. |
| 2140 | func MakeDTimestamp(t time.Time, precision time.Duration) *DTimestamp { |
| 2141 | return &DTimestamp{Time: t.Round(precision)} |
| 2142 | } |
| 2143 | |
| 2144 | var dMinTimestamp = &DTimestamp{} |
| 2145 |
no test coverage detected
searching dependent graphs…