| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 3 | 0.970 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 198 | Closure/closure/goog/date/date.js |
| 2 | 4 | 211 | Closure/closure/goog/date/date.js |
| ||||
/**
* Returns true if the 2 dates are in the same day.
* @param {Date} date The time to check.
* @param {Date=} opt_now The current time.
* @return {boolean} Whether the dates are on the same day.
*/
goog.date.isSameDay= function (date, opt_now){
var now= opt_now
|| new Date(goog.now( ));
return date.getDate( )== now.getDate( )
&&goog.date.isSameMonth(date, now);
} ;
|
| ||||
/**
* Returns true if the 2 dates are in the same month.
* @param {Date} date The time to check.
* @param {Date=} opt_now The current time.
* @return {boolean} Whether the dates are in the same calendar month.
*/
goog.date.isSameMonth= function (date, opt_now){
var now= opt_now
|| new Date(goog.now( ));
return date.getMonth( )== now.getMonth( )
&&goog.date.isSameYear(date, now);
} ;
|
| |||
/**
* Returns true if the 2 dates are in the same month.
* @param {Date} date The time to check.
* @param {Date=} opt_now The current time.
* @return {boolean} Whether the dates are in the same calendar month.
*/
/**
* Returns true if the 2 dates are in the same day.
* @param {Date} date The time to check.
* @param {Date=} opt_now The current time.
* @return {boolean} Whether the dates are on the same day.
*/
goog.date. [[#variable43e62760]]= function (date,opt_now)
{ var now=opt_now
|| new Date(goog.now( ));
return date. [[#variable43e626e0]]( )==now. [[#variable43e626e0]]( )
&& goog.date. [[#variable43e62680]](date,now);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#43e62760]] | isSameMonth |
| 1 | 2 | [[#43e62760]] | isSameDay |
| 2 | 1 | [[#43e626e0]] | getMonth |
| 2 | 2 | [[#43e626e0]] | getDate |
| 3 | 1 | [[#43e62680]] | isSameYear |
| 3 | 2 | [[#43e62680]] | isSameMonth |