moment-time-by-timezone

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i moment-time-by-timezone

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.06 kB

Total Files

4

Last publish

Collaborators

  • nikitos-n