moment-jalaali
Advanced tools
Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "moment-jalaali", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -575,4 +575,4 @@ | ||
it('should return start of Jalaali year, month and date', function() { | ||
var m = moment('1980-05-15 07:10:20') | ||
m.startOf('jYear').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1359-01-01 01:00:00') | ||
var m = moment('1985-05-15 07:10:20') | ||
m.startOf('jYear').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1364-01-01 00:00:00') | ||
m = moment('1980-05-15 07:10:20') | ||
@@ -600,4 +600,4 @@ m.startOf('jMonth').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1359-02-01 00:00:00') | ||
it('should return end of Jalaali year, month and date', function() { | ||
var m = moment('1980-05-15 07:10:20') | ||
m.endOf('jYear').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1360-01-01 00:59:59') | ||
var m = moment('1985-05-15 07:10:20') | ||
m.endOf('jYear').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1364-12-29 23:59:59') | ||
m = moment('1980-05-15 07:10:20') | ||
@@ -604,0 +604,0 @@ m.endOf('jMonth').format('jYYYY-jMM-jDD HH:mm:ss').should.be.equal('1359-02-31 23:59:59') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package