UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

10 lines 493 B
import type { Temporal } from "../types.js"; /** * Returns a string in RFC 7231's format which represents an exact time of given temporal object. * Units smaller than second are ignored (rounded down). * * @param dt temporal object which includes exact time info (`Instant` and `ZonedDateTime`) * @returns a string formatted according to RFC 7231 */ export declare function formatRfc7231(dt: Temporal.Instant | Temporal.ZonedDateTime): string; //# sourceMappingURL=formatRfc7231.d.ts.map