gregorian-calendar
Advanced tools
Comparing version 4.0.4 to 4.1.0
@@ -1271,2 +1271,18 @@ /* | ||
compareToDay: function compareToDay(d2) { | ||
var d1Year = this.getYear(); | ||
var d2Year = d2.getYear(); | ||
var d1Month = this.getMonth(); | ||
var d2Month = d2.getMonth(); | ||
var d1Day = this.getDayOfMonth(); | ||
var d2Day = d2.getDayOfMonth(); | ||
if (d1Year !== d2Year) { | ||
return d1Year - d2Year; | ||
} | ||
if (d1Month !== d2Month) { | ||
return d1Month - d2Month; | ||
} | ||
return d1Day - d2Day; | ||
}, | ||
/* | ||
@@ -1273,0 +1289,0 @@ * Sets all the calendar field values or specified field and the time value |
{ | ||
"name": "gregorian-calendar", | ||
"version": "4.0.4", | ||
"version": "4.1.0", | ||
"author": "yiminghe <yiminghe@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "date time utils ported from java", |
@@ -305,4 +305,8 @@ # gregorian-calendar | ||
### Number GregorianCalendar.prototype.compareToDay(other: GregorianCalendar) | ||
compare this object and other by day. return -1 0 or 1 | ||
### GregorianCalendar.prototype.clear() | ||
clear all field of current instance |
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
53459
9
1454
312