Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 3 | 0.967 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 283 | Closure/closure/goog/date/date.js |
2 | 3 | 79 | Closure/closure/goog/date/utcdatetime.js |
| ||||
/** * Creates a DateTime from a datetime string expressed in ISO 8601 format. * * @param {string} formatted A date or datetime expressed in ISO 8601 format. * @return {goog.date.DateTime} Parsed date or null if parse fails. */ goog.date.fromIsoString= function (formatted){ var ret= new goog.date.DateTime(2000); return goog.date.setIso8601DateTime(ret, formatted) ? ret : null; } ; |
| ||||
/** * Creates a DateTime from a UTC datetime string expressed in ISO 8601 format. * * @param {string} formatted A date or datetime expressed in ISO 8601 format. * @return {goog.date.UtcDateTime} Parsed date or null if parse fails. */ goog.date.UtcDateTime.fromIsoString= function (formatted){ var ret= new goog.date.UtcDateTime(2000); return goog.date.setIso8601DateTime(ret, formatted) ? ret : null; } ; |
| |||
[[#variable62f706e0]]. [[#variable62f70620]].fromIsoString= function (formatted) { var ret=new goog.date. [[#variable62f704e0]](2000); return goog.date.setIso8601DateTime(ret,formatted) ?ret :null; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62f706e0]] | /** * Creates a DateTime from a datetime string expressed in ISO 8601 format. * * @param {string} formatted A date or datetime expressed in ISO 8601 format. * @return {goog.date.DateTime} Parsed date or null if parse fails. */ goog |
1 | 2 | [[#62f706e0]] | /** * Creates a DateTime from a UTC datetime string expressed in ISO 8601 format. * * @param {string} formatted A date or datetime expressed in ISO 8601 format. * @return {goog.date.UtcDateTime} Parsed date or null if parse fails. */ goog.date |
2 | 1 | [[#62f70620]] | date |
2 | 2 | [[#62f70620]] | UtcDateTime |
3 | 1 | [[#62f704e0]] | DateTime |
3 | 2 | [[#62f704e0]] | UtcDateTime |