1.0.0 • Published 2 years ago

moment-time-by-timezone v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

moment-time-by-timezone

Extremely easy way and simple way to get time of some place. Help you to choose place time you want to know and format of time.

Installation

$ npm i moment-time-by-timezone

or

$ yarn add moment-time-by-timezone

Examples

Simple

const { getTimeOfTimeZone } = require('moment-time-by-timezone')

const time = getTimeOfTimeZone('Europe/London', 'YYYY-MM-DD HH:mm')

will return:

2022-03-15 06:09

Options

The getTimeOfTimeZone function takes location as string that may describe place time you want to know and location as string to show time in some format:

License

MIT