Comparing version 0.6.4 to 0.6.5
@@ -26,2 +26,3 @@ var fs = require('fs') | ||
, '/usr/lib/zoneinfo' | ||
, '/usr/share/lib/zoneinfo' | ||
]; | ||
@@ -28,0 +29,0 @@ var TZDIR = process.env.TZDIR; |
{ | ||
"name": "time", | ||
"description": "\"time.h\" bindings for NodeJS", | ||
"keywords": ["time", "time.h", "timezone", "setTimezone", "getTimezone"], | ||
"version": "0.6.4", | ||
"keywords": ["date", "time", "time.h", "timezone", "setTimezone", "getTimezone"], | ||
"version": "0.6.5", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "type": "git", |
@@ -7,6 +7,16 @@ node-time | ||
This module offers simple bindings for the C [time.h][] APIs. | ||
It also offers an extended regular `Date` object with `getTimezone()` | ||
It also offers an extended native `Date` object with `getTimezone()` | ||
and `setTimezone()` functions, which aren't normally part of JavaScript. | ||
Installation | ||
------------ | ||
`node-time` is available through npm: | ||
``` shell | ||
$ npm install time | ||
``` | ||
Example | ||
@@ -31,3 +41,3 @@ ------- | ||
// You can also set the timezone during instantiation | ||
var azDate = new Date(2010, 0, 1, 'America/Phoenix'); | ||
var azDate = new time.Date(2010, 0, 1, 'America/Phoenix'); | ||
azDate.getTimezone(); // 'America/Phoenix' | ||
@@ -34,0 +44,0 @@ ``` |
@@ -84,2 +84,3 @@ var assert = require('assert'); | ||
, ye = relative.getFullYear() | ||
, t = relative.getTime() | ||
@@ -95,1 +96,2 @@ relative.setTimezone('UTC', true) | ||
assert.equal(ye, relative.getFullYear()) | ||
assert.notEqual(t, relative.getTime()) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
33409
513
210
1
1