soccer-go
Version:
Soccer CLI for stats and results.
20 lines (19 loc) • 696 B
TypeScript
/**
* Formats a date using the user's locale
* Example (en-US): "Sun, May 10, 2026, 2:00 AM"
* Example (de-DE): "So., 10. Mai 2026, 02:00"
* Input: Date object from strings like "2022-02-10T19:48:37Z"
*/
export declare function formatFixtureDate(date: Date): string;
/**
* Formats a date using the user's locale
* Example (en-US): "06/18/1995"
* Example (de-DE): "18.06.1995"
* Input: Date string like "2019-08-09"
*/
export declare function formatPlayerDate(dateOfBirth: string): string;
/**
* Gets date with offset in YYYY-MM-DD format
* @param days Number of days offset (positive for future, negative for past)
*/
export declare function getDateWithOffset(days: number): string;