ParseDInterval parses and returns the *DInterval Datum value represented by the provided string, or an error if parsing is unsuccessful.
(s string)
| 1147 | // ParseDInterval parses and returns the *DInterval Datum value represented by the provided |
| 1148 | // string, or an error if parsing is unsuccessful. |
| 1149 | func ParseDInterval(s string) (*DInterval, error) { |
| 1150 | return ParseDIntervalWithTypeMetadata(s, types.DefaultIntervalTypeMetadata) |
| 1151 | } |
| 1152 | |
| 1153 | // truncateDInterval truncates the input DInterval downward to the nearest |
| 1154 | // interval quantity specified by the DurationField input. |
no test coverage detected