🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

datetimejs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datetimejs - npm Package Compare versions

Comparing version

to
0.3.3

2

datetime.js

@@ -564,3 +564,3 @@ // Generated by CoffeeScript 1.6.3

}
d = new Date(meta.year, meta.month, meta.date, (meta.timeAdjust ? hour24(meta.hour) : meta.hour), meta.minute, meta.second, meta.millisecond);
d = new Date(meta.year, meta.month, meta.date, (meta.timeAdjust ? hour24(meta.hour + 12) : meta.hour), meta.minute, meta.second, meta.millisecond);
if (meta.timezone != null) {

@@ -567,0 +567,0 @@ localOffset = d.getTimezoneOffset();

@@ -40,3 +40,3 @@ {

},
"version" : "0.3.2"
"version" : "0.3.3"
}

@@ -68,3 +68,3 @@ // Generated by CoffeeScript 1.6.3

});
return it('should parse decimal seconds', function() {
it('should parse decimal seconds', function() {
var d;

@@ -75,2 +75,9 @@ d = datetime.strptime('2013-12-01 12:00:01.12', '%Y-%m-%d %H:%M:%f');

});
return it('should parse AM PM', function() {
var d;
d = datetime.strptime('2013-12-01 09:00 a.m.', '%Y-%m-%d %I:%M %p');
assert.equal(d.getHours(), 9);
d = datetime.strptime('2013-12-01 09:00 p.m.', '%Y-%m-%d %I:%M %p');
return assert.equal(d.getHours(), 21);
});
});

@@ -77,0 +84,0 @@ return describe('#isoparse()', function() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet