Socket
Socket
Sign inDemoInstall

gregorian-calendar

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gregorian-calendar - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0

HISTORY.md

16

lib/gregorian-calendar.js

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

2

package.json
{
"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
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