MCPcopy Create free account
hub / github.com/bendrucker/postgres-interval / toPostgres

Method toPostgres

index.d.ts:22–22  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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.

Callers 1

test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected