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

timezoner

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezoner - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

package.json
{
"name": "timezoner",
"description": "Node.js client library for accessing Google Time Zone API.",
"keywords": [
"timezone",
"latitude",
"longitude",
"coordinates",
"timezoner",
"Google Time Zone API"
],
"maintainers": "Justin John Mathews <justinjohnmathews@gmail.com>",

@@ -15,3 +23,3 @@ "homepage": "https://github.com/justin-john/node-timezone",

],
"version": "0.0.2",
"version": "0.0.3",
"main": "./lib/timezone",

@@ -18,0 +26,0 @@ "dependencies": {},

@@ -17,4 +17,4 @@ node-timezone

timezoner.getTimeZone(
latitude, // Latitude coordinate
longitude, // Longitude coordinate
39.6034810, // Latitude coordinate
-119.6822510, // Longitude coordinate
function (err, data) {

@@ -28,3 +28,13 @@ if (err) {

);
```
#####Response data:
{
"dstOffset" : 0.0,
"rawOffset" : -28800.0,
"status" : "OK",
"timeZoneId" : "America/Los_Angeles",
"timeZoneName" : "Pacific Standard Time"
}
More details can be found on docs of [Google TimeZone API](https://developers.google.com/maps/documentation/timezone).

@@ -34,4 +44,4 @@

(c) 2013 Justin John Mathews<justinjohnmathews@gmail.com>, MIT license.
(c) 2013 Justin John Mathews <justinjohnmathews@gmail.com>, MIT license.
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