* Returns an interval string. This allows the interval object to be passed into prepared statements. * * ```js * var parse = require('postgres-interval') * var interval = parse('01:02:03') * // => { hours: 1, minutes: 2, seconds: 3 } * interval.toPostgres() * // 1
()
| 20 | * ``` |
| 21 | */ |
| 22 | toPostgres(): string; |
| 23 | |
| 24 | /** |
| 25 | * Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string, for example P0Y0M0DT0H9M0S. |