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

parse-messy-time

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

parse-messy-time - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

index.js

@@ -181,3 +181,3 @@ var months = [

out.setSeconds(res.seconds === undefined ? 0 : res.seconds);
if (res.date) out.setDate(res.date);
if (res.date !== undefined) out.setDate(res.date);

@@ -184,0 +184,0 @@ if (typeof res.month === 'number') {

{
"name": "parse-messy-time",
"version": "1.2.0",
"version": "1.2.1",
"description": "parse messy human date and time strings",

@@ -16,3 +16,3 @@ "main": "index.js",

"scripts": {
"test": "tape test/*.js"
"test": "TZ=US/Pacific tape test/*.js"
},

@@ -19,0 +19,0 @@ "repository": {

@@ -180,3 +180,8 @@ var parse = require('../');

);
t.equal(
strftime('%F %T', parse('14 days ago', optsd)),
'2015-03-31 09:46:01',
'14 days ago'
);
t.end();
});
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