An open API service indexing awesome lists of open source software.

https://github.com/nextcloud-libraries/timezones

A small library containing common time zone logic and data.
https://github.com/nextcloud-libraries/timezones

Last synced: about 2 months ago
JSON representation

A small library containing common time zone logic and data.

Awesome Lists containing this project

README

          

# `@nextcloud/timezones`

[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/timezones)](https://api.reuse.software/info/github.com/nextcloud-libraries/timezones)
[![npm last version](https://img.shields.io/npm/v/@nextcloud/timezones.svg?style=flat-square)](https://www.npmjs.com/package/@nextcloud/timezones)
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud-libraries.github.io/timezones/)

A small library containing common time zone logic and data.

## API

The most important exported function is `getTimezoneManager()` which will return an instance of the `TimezoneManager` class.
This library ships the [tz database](https://www.iana.org/time-zones).
All bundled time zones and aliases can be loaded via `TimezoneManger.registerDefaultTimezones()`.