ParseDInterval parses and returns the *DInterval Datum value represented by the provided string, or an error if parsing is unsuccessful.
(style duration.IntervalStyle, s string)
| 3148 | // ParseDInterval parses and returns the *DInterval Datum value represented by the provided |
| 3149 | // string, or an error if parsing is unsuccessful. |
| 3150 | func ParseDInterval(style duration.IntervalStyle, s string) (*DInterval, error) { |
| 3151 | return ParseDIntervalWithTypeMetadata(style, s, types.DefaultIntervalTypeMetadata) |
| 3152 | } |
| 3153 | |
| 3154 | // truncateInterval truncates the input interval downward to the nearest |
| 3155 | // interval quantity specified by the DurationField input. |
no test coverage detected
searching dependent graphs…