Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.2.2 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(

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