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 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "timezone-conversions",
"version": "1.0.2",
"version": "1.0.3",
"description": "Convert DateTime from one timezone to another",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,7 +17,8 @@ # timezone-conversions

Get Current Date Time of any timezone
Convert Date Time From One time timezone to another
----
```javascript
const { Convert_TZ } = require("timezone-conversions");
let convertedDatetime = Convert_TZ("yyyy-MM-dd hh:mm:ss", from_timezone, to_timezone); //example Convert_TZ("2021-03-19 10:00:00", "+11:00", "-04:00");
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);

@@ -30,3 +31,4 @@ ```

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

@@ -33,0 +35,0 @@ ```

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