mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
15 lines
534 B
TypeScript
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 };
|