timezone-conversions
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4424
37