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

time

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

1

index.js

@@ -26,2 +26,3 @@ var fs = require('fs')

, '/usr/lib/zoneinfo'
, '/usr/share/lib/zoneinfo'
];

@@ -28,0 +29,0 @@ var TZDIR = process.env.TZDIR;

4

package.json
{
"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())
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