🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign 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
0.3.2
to
0.3.3
+1
-1
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"
}

@@ -795,3 +795,3 @@ ###!

meta.date,
(if meta.timeAdjust then hour24(meta.hour) else meta.hour),
(if meta.timeAdjust then hour24(meta.hour + 12) else meta.hour),
meta.minute,

@@ -798,0 +798,0 @@ meta.second,

@@ -45,2 +45,8 @@ # # Parser tests

it 'should parse AM PM', () ->
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'
assert.equal d.getHours(), 21
describe '#isoparse()', () ->

@@ -47,0 +53,0 @@ it 'should parse date in ISO format', () ->

@@ -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