1.1.8 • Published 3 years ago

@bbc/moment-timezone-include v1.1.8

Weekly downloads
1,157
License
Apache-2.0
Repository
github
Last release
3 years ago

@bbc/moment-timezone-include - Known Vulnerabilities Dependency Status peerDependencies Status GitHub license npm version PRs Welcome

This package allows you to exclude all moment timezones from being included, while including specific ones in the chunks you desire.

Installation

npm install @bbc/moment-timezone-include --save

Usage - Exclude default timezones

plugins: [new MomentTimezoneInclude({ startYear: 1990, endYear: 2025 })],

This does two things. Firstly it removes all timezones from the moment-timezone package so that they can be included individually. It also specifies the date range of the specifically included timezone data. If startYear isn't provided it defaults to the earliest available data and likewise if endYear isn't included it includes all known future data.

Usage - Include specific timezones

import '@bbc/moment-timezone-include/tz/America/New_York'

This makes the specified timezone available to moment. It supports all moment timezones by replacing America/New_York in the example above with any moment timezone. The full list of timezones can be found here.

Contributing

Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead respository.

Code of Conduct

We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.

License

Psammead is Apache 2.0 licensed.

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago