Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timezone-conversions

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-conversions

Convert DateTime from one timezone to another

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by340%
Maintainers
1
Weekly downloads
 
Created
Source

timezone-conversions

© Aman latkar amanlatkar1630@gmail.com

Functionality

  1. Convert Date Time From One time timezone to another

  2. Get Current Date Time of any timezone

Installation

npm install timezone-conversions

Usage

Convert Date Time from one time timezone to another

const { Convert_TZ } = require("timezone-conversions");
let convertedDatetime = Convert_TZ(
  "yyyy-mm-dd hh:mm:ss",
  from_timezone,
  to_timezone
);
/* let convertedDatetime = Convert_TZ(
  "2021-03-19 10:00:00",
  "+11:00",
  "-04:00"
); */
console.log(convertedDatetime);

Get Current Date Time of any timezone

const { CurrentDateTime } = require("timezone-conversions");
let Datetime = CurrentDateTime(timezone);
//let Datetime = CurrentDateTime("+05:30")
console.log(Datetime);

Keywords

FAQs

Package last updated on 19 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc