Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 395 Bytes

File metadata and controls

23 lines (14 loc) · 395 Bytes

Convert time GMT

convert the timestamp in a format yyyy/mm/dd hh:mm:ss with GMT as default

Installing

npm i convert-time-gmt --save

Usage

On the main file:

const gmtConversion = require('convert-time-gmt')

gmtConversion() // 2021/22/11 12:00:00

gmtConversion(new Date()) // 2021/22/11 12:00:00

gmtConversion(new Date(), 'GMT-05:00') // 2021/22/11 07:00:00