| 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.962 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 50 | Closure/closure/goog/locale/formatting.js |
| 2 | 4 | 67 | Closure/closure/goog/locale/formatting.js |
| ||||
/**
* Format the given date object into a string representation using pattern
* specified.
* @param {string} pattern Pattern String to specify how the date should
* be formatted.
* @param {Date} date Date object being formatted.
* @param {goog.locale.TimeZone=} opt_timeZone optional, if specified, time
* related fields will be formatted based on its setting.
*
* @return {string} string representation of date/time.
* @deprecated Use goog.i18n.DateTimeFormat.
*/
goog.locale.formatDateTime= function (pattern, date, opt_timeZone){
var formatter= new goog.locale.DateTimeFormat( );
formatter.applyPattern(pattern);
return formatter.format(date, opt_timeZone);
} ;
|
| ||||
/**
* Formats a given date object according to a predefined
* date format pattern specified in symbols object.
* @param {number} formatType Number used to reference predefined pattern.
* @param {Date} date The date object being formatted.
* @param {goog.locale.TimeZone=} opt_timeZone optional, if specified, time
* related fields will be formatted based on its setting.
* @return {string} string representation of date/time.
* @deprecated Use goog.i18n.DateTimeFormat.
*/
goog.locale.standardFormatDateTime= function (formatType, date, opt_timeZone){
var formatter= new goog.locale.DateTimeFormat( );
formatter.applyStandardPattern(formatType);
return formatter.format(date, opt_timeZone);
} ;
|
| |||
/**
* Formats a given date object according to a predefined
* date format pattern specified in symbols object.
* @param {number} formatType Number used to reference predefined pattern.
* @param {Date} date The date object being formatted.
* @param {goog.locale.TimeZone=} opt_timeZone optional, if specified, time
* related fields will be formatted based on its setting.
* @return {string} string representation of date/time.
* @deprecated Use goog.i18n.DateTimeFormat.
*/
/**
* Format the given date object into a string representation using pattern
* specified.
* @param {string} pattern Pattern String to specify how the date should
* be formatted.
* @param {Date} date Date object being formatted.
* @param {goog.locale.TimeZone=} opt_timeZone optional, if specified, time
* related fields will be formatted based on its setting.
*
* @return {string} string representation of date/time.
* @deprecated Use goog.i18n.DateTimeFormat.
*/
goog.locale. [[#variable62f27c60]]= function ( [[#variable62f27ba0]],date,opt_timeZone)
{ var formatter=new goog.locale.DateTimeFormat( );
formatter. [[#variable62f27b40]]( [[#variable62f27ba0]]);
return formatter.format(date,opt_timeZone);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62f27c60]] | standardFormatDateTime |
| 1 | 2 | [[#62f27c60]] | formatDateTime |
| 2 | 1 | [[#62f27ba0]] | formatType |
| 2 | 2 | [[#62f27ba0]] | pattern |
| 3 | 1 | [[#62f27b40]] | applyStandardPattern |
| 3 | 2 | [[#62f27b40]] | applyPattern |