You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parse-messy-time

Package Overview
Dependencies
Maintainers
2
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

to
1.2.3

1

index.js

@@ -310,2 +310,3 @@ var months = [

var hms = [ Number(m[1]), null, null ];
if (/^am/.test(next) && hms[0] == 12) hms[0] -= 12;
if (/^pm/.test(next) && hms[0] < 12) hms[0] += 12;

@@ -312,0 +313,0 @@ if (m[2]) hms[1] = Number(m[2]);

2

package.json
{
"name": "parse-messy-time",
"version": "1.2.2",
"version": "1.2.3",
"description": "parse messy human date and time strings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,2 +14,3 @@ var parse = require('../');

t.equal(strftime('%T', parse('11pm')), '23:00:00');
t.equal(strftime('%T', parse('12:30am')), '00:30:00');
t.equal(strftime('%T', parse('12:30pm')), '12:30:00');

@@ -16,0 +17,0 @@ t.equal(