eigent/package/@stackframe/stack-shared/dist/utils/dates.d.ts
2025-08-12 01:16:39 +02:00

15 lines
534 B
TypeScript

declare function isWeekend(date: Date): boolean;
declare function fromNow(date: Date): string;
declare function fromNowDetailed(date: Date): {
result: string;
/**
* May be Infinity if the result will never change.
*/
secondsUntilChange: number;
};
/**
* Returns a string representation of the given date in the format expected by the `datetime-local` input type.
*/
declare function getInputDatetimeLocalString(date: Date): string;
export { fromNow, fromNowDetailed, getInputDatetimeLocalString, isWeekend };