Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
561 B
Text
14 lines
561 B
Text
/**
|
|
* The function extracts UTC offset in minutes from the given date in specified
|
|
* time zone.
|
|
*
|
|
* Unlike `Date.prototype.getTimezoneOffset`, this function returns the value
|
|
* mirrored to the sign of the offset in the time zone. For Asia/Singapore
|
|
* (UTC+8), `tzOffset` returns 480, while `getTimezoneOffset` returns -480.
|
|
*
|
|
* @param timeZone - Time zone name (IANA or UTC offset)
|
|
* @param date - Date to check the offset for
|
|
*
|
|
* @returns UTC offset in minutes
|
|
*/
|
|
export declare function tzOffset(timeZone: string | undefined, date: Date): number;
|