1.0.0 • Published 4 years ago
moment-time-by-timezone v1.0.0
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-timezoneor
$ yarn add moment-time-by-timezoneExamples
Simple
const { getTimeOfTimeZone } = require('moment-time-by-timezone')
const time = getTimeOfTimeZone('Europe/London', 'YYYY-MM-DD HH:mm')will return:
2022-03-15 06:09Options
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
1.0.0
4 years ago