@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
21 lines • 604 B
TypeScript
export declare class RFCDate {
private serialized;
/**
* Creates a new RFCDate instance using today's date.
*/
static today(): RFCDate;
/**
* Creates a new RFCDate instance using the provided input.
* If a string is used then in must be in the format YYYY-MM-DD.
*
* @param date A Date object or a date string in YYYY-MM-DD format
* @example
* new RFCDate("2022-01-01")
* @example
* new RFCDate(new Date())
*/
constructor(date: Date | string);
toJSON(): string;
toString(): string;
}
//# sourceMappingURL=rfcdate.d.ts.map