NewDInterval creates a new DInterval.
(d duration.Duration, itm types.IntervalTypeMetadata)
| 3141 | |
| 3142 | // NewDInterval creates a new DInterval. |
| 3143 | func NewDInterval(d duration.Duration, itm types.IntervalTypeMetadata) *DInterval { |
| 3144 | truncateInterval(&d, itm) |
| 3145 | return &DInterval{Duration: d} |
| 3146 | } |
| 3147 | |
| 3148 | // ParseDInterval parses and returns the *DInterval Datum value represented by the provided |
| 3149 | // string, or an error if parsing is unsuccessful. |
no test coverage detected
searching dependent graphs…