Skip to content

convert the timestamp in a format dd/mm/yyyy hh:mm:ss

License

Notifications You must be signed in to change notification settings

CarGDev/time-function

Repository files navigation

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

About

convert the timestamp in a format dd/mm/yyyy hh:mm:ss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published