# time-zone **Repository Path**: mirrors_sindresorhus/time-zone ## Basic Information - **Project Name**: time-zone - **Description**: Pretty time zone: +2 or -9:30 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # time-zone > Pretty [time zone](https://en.wikipedia.org/wiki/Time_zone): `+2` or `-9:30` ## Install ``` $ npm install time-zone ``` ## Usage ```js import timeZone from 'time-zone'; // Current time zone (in Norway) timeZone(); //=> '+2' // Time zone in February (in Norway) timeZone(new Date(2016, 1, 1)); //=> '+1' // Current time zone (in French Polynesia) timeZone(); //=> '-9:30' ``` ## API ### timeZone(date?) #### date Type: `Date`\ Default: `new Date()` Custom date.