UNPKG

adizen-tanstack-table

Version:

Enhanced DataTable with TanStack Table

39 lines (38 loc) 1.15 kB
/** * Main timezone detection interface */ export interface TimezoneResult { timezone: string; isValid: boolean; wasNormalized: boolean; originalTimezone: string | null; detectionMethod: "intl" | "intl-locale" | "date-fns-tz" | "offset" | "fallback"; offset: number; offsetString: string; } /** * Enhanced timezone detection function with multiple fallbacks * Returns detailed information about the detected timezone */ export declare const detectTimezone: () => TimezoneResult; /** * Simple timezone getter - drop-in replacement for your original function * Returns just the timezone string */ export declare const getCurrentSystemTimezone: () => string; /** * Gets timezone with validation - throws if invalid */ export declare const getValidatedTimezone: () => string; /** * Checks if a given timezone string is valid */ export declare const isValidTimezone: (tz: string) => boolean; /** * Gets the current UTC offset in minutes */ export declare const getCurrentUTCOffset: () => number; /** * Gets a formatted offset string (e.g., "UTC+05:30") */ export declare const getFormattedOffset: () => string;