CloneSet30


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
248230.971SourceElements[16]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1272280
Closure/closure/goog/i18n/datetimeformat.js
2248247
Closure/closure/goog/locale/datetimeformat.js
Clone Instance
1
Line Count
272
Source Line
280
Source File
Closure/closure/goog/i18n/datetimeformat.js

/**
 * Formats Era field according to pattern specified.
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatEra_=  function (count, date){
  var value=  date.getFullYear( )> 0
              ?                        1
              :                            0;
  return count>=  4
         ?            goog.i18n.DateTimeSymbols.ERANAMES[value]
         :            goog.i18n.DateTimeSymbols.ERAS[value];
                                                                      } ;
/**
 * Formats Year field according to pattern specified
 *   Javascript Date object seems incapable handling 1BC and
 *   year before. It can show you year 0 which does not exists.
 *   following we just keep consistent with javascript's
 *   toString method. But keep in mind those things should be
 *   unsupported.
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatYear_=  function (count, date){
  var value=  date.getFullYear( );
  if (value<  0) {
    value=  -value;
                 }
  return count==  2
         ?goog.string.padNumber(value%  100, 2)
         :String(value);
                                                                       } ;

/**
 * Formats Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatMonth_=  function (count, date){
  var value=  date.getMonth( );
  switch (count)
  { case 5: return goog.i18n.DateTimeSymbols.NARROWMONTHS[value];
    case 4: return goog.i18n.DateTimeSymbols.MONTHS[value];
    case 3: return goog.i18n.DateTimeSymbols.SHORTMONTHS[value];
    default:
      return goog.string.padNumber(value+  1, count); }
                                                                        } ;



/**
 * Formats (1..24) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats. This controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.format24Hours_=
    function (count, date){
  return goog.string.padNumber(date.getHours( )
                               ||                 24, count);
                          } ;

/**
 * Formats Fractional seconds field according to pattern
 * specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 *
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatFractionalSeconds_=
    function (count, date){
  // Fractional seconds left-justify, append 0 for precision beyond 3
  var value=  date.getTime( )% 1000/  1000;
  return value.toFixed(Math.min(3, count)).substr(2)+
         (count>  3
          ?           goog.string.padNumber(0, count-  3)
          :                                                 '');
                          } ;
/**
 * Formats Day of week field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatDayOfWeek_=
    function (count, date){
  var value=  date.getDay( );
  return count>=  4
         ?            goog.i18n.DateTimeSymbols.WEEKDAYS[value]
         :            goog.i18n.DateTimeSymbols.SHORTWEEKDAYS[value];
                          } ;

/**
 * Formats Am/Pm field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatAmPm_=  function (count, date){
  var hours=  date.getHours( );
  return goog.i18n.DateTimeSymbols.AMPMS[hours>=  12
                                         &&             hours<  24
                                         ?                           1
                                         :                               0];
                                                                       } ;
/**
 * Formats (1..12) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.format1To12Hours_=
    function (count, date){
  return goog.string.padNumber(date.getHours( )% 12
                               ||                      12, count);
                          } ;
/**
 * Formats (0..11) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.format0To11Hours_=
    function (count, date){
  return goog.string.padNumber(date.getHours( )% 12, count);
                          } ;


/**
 * Formats (0..23) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.format0To23Hours_=
    function (count, date){
  return goog.string.padNumber(date.getHours( ),count);
                          } ;


/**
 * Formats Standalone weekday field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatStandaloneDay_=
    function (count, date){
  var value=  date.getDay( );
  switch (count)
  { case 5:
      return goog.i18n.DateTimeSymbols.STANDALONENARROWWEEKDAYS[value];
    case 4:
      return goog.i18n.DateTimeSymbols.STANDALONEWEEKDAYS[value];
    case 3:
      return goog.i18n.DateTimeSymbols.STANDALONESHORTWEEKDAYS[value];
    default:
      return goog.string.padNumber(value, 1); }
                          } ;



/**
 * Formats Standalone Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatStandaloneMonth_=
    function (count, date){
  var value=  date.getMonth( );
  switch (count)
  { case 5:
      return goog.i18n.DateTimeSymbols.STANDALONENARROWMONTHS[value];
    case 4:
      return goog.i18n.DateTimeSymbols.STANDALONEMONTHS[value];
    case 3:
      return goog.i18n.DateTimeSymbols.STANDALONESHORTMONTHS[value];
    default:
      return goog.string.padNumber(value+  1, count); }
                          } ;



/**
 * Formats Quarter field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatQuarter_=
   function (count, date){
  var value=  Math.floor(date.getMonth( )/ 3);
  return count<  4
         ?           goog.i18n.DateTimeSymbols.SHORTQUARTERS[value]
         :           goog.i18n.DateTimeSymbols.QUARTERS[value];
                         } ;

/**
 * Formats Date field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatDate_=  function (count, date){
  return goog.string.padNumber(date.getDate( ),count);
                                                                       } ;


/**
 * Formats Minutes field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatMinutes_=
    function (count, date){
  return goog.string.padNumber(date.getMinutes( ),count);
                          } ;


/**
 * Formats Seconds field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatSeconds_=
    function (count, date){
  return goog.string.padNumber(date.getSeconds( ),count);
                          } ;


Clone Instance
2
Line Count
248
Source Line
247
Source File
Closure/closure/goog/locale/datetimeformat.js

/**
 * Formats Era field according to pattern specified.
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatEra_=  function (count, date){
  var value=  date.getFullYear( )> 0
              ?                        1
              :                            0;
  return count>=  4
         ?            this.symbols_.ERANAMES[value]
         :                                            this.symbols_.ERAS[value];
                                                                        } ;
/**
 * Formats Year field according to pattern specified
 *   Javascript Date object seems incapable handling 1BC and
 *   year before. It can show you year 0 which does not exists.
 *   following we just keep consistent with javascript's
 *   toString method. But keep in mind those things should be
 *   unsupported.
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatYear_=  function (count, date){
  var value=  date.getFullYear( );
  if (value<  0) {
    value=  -value;
                 }
  return count==  2
         ?goog.string.padNumber(value%  100, 2)
         :String(value);
                                                                         } ;
/**
 * Formats Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatMonth_=  function (count, date){
  var value=  date.getMonth( );
  switch (count)
  { case 5: return this.symbols_.NARROWMONTHS[value];
    case 4: return this.symbols_.MONTHS[value];
    case 3: return this.symbols_.SHORTMONTHS[value];
    default:
      return goog.string.padNumber(value+  1, count); }
                                                                          } ;
/**
 * Formats (1..24) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats. This controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.format24Hours_=  function (count, date){
  return goog.string.padNumber(date.getHours( )
                               ||                 24, count);
                                                                            } ;
/**
 * Formats Fractional seconds field according to pattern
 * specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 *
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatFractionalSeconds_=
    function (count, date){
  // Fractional seconds left-justify, append 0 for precision beyond 3
  var value=  date.getTime( )% 1000/  1000;
  return value.toFixed(Math.min(3, count)).substr(2)+
         (count>  3
          ?           goog.string.padNumber(0, count-  3)
          :                                                 '');
                          } ;
/**
 * Formats Day of week field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatDayOfWeek_=  function (count, date){
  var value=  date.getDay( );
  return count>=  4
         ?            this.symbols_.WEEKDAYS[value]
         :            this.symbols_.SHORTWEEKDAYS[value];
                                                                              } ;
/**
 * Formats Am/Pm field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatAmPm_=  function (count, date){
  var hours=  date.getHours( );
  return this.symbols_.AMPMS[hours>=  12
                             &&             hours<  24
                             ?                           1
                             :                               0];
                                                                         } ;
/**
 * Formats (1..12) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.format1To12Hours_=  function (count, date){
  return goog.string.padNumber(date.getHours( )% 12
                               ||                      12, count);
                                                                               } ;
/**
 * Formats (0..11) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.format0To11Hours_=  function (count, date){
  return goog.string.padNumber(date.getHours( )% 12, count);
                                                                               } ;
/**
 * Formats (0..23) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.format0To23Hours_=  function (count, date){
  return goog.string.padNumber(date.getHours( ),count);
                                                                               } ;
/**
 * Formats Standalone weekday field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatStandaloneDay_=
    function (count, date){
  var value=  date.getDay( );
  switch (count)
  { case 5:
      return this.symbols_.STANDALONENARROWWEEKDAYS[value];
    case 4:
      return this.symbols_.STANDALONEWEEKDAYS[value];
    case 3:
      return this.symbols_.STANDALONESHORTWEEKDAYS[value];
    default:
      return goog.string.padNumber(value, 1); }
                          } ;

/**
 * Formats Standalone Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatStandaloneMonth_=
    function (count, date){
  var value=  date.getMonth( );
  switch (count)
  { case 5:
      return this.symbols_.STANDALONENARROWMONTHS[value];
    case 4:
      return this.symbols_.STANDALONEMONTHS[value];
    case 3:
      return this.symbols_.STANDALONESHORTMONTHS[value];
    default:
      return goog.string.padNumber(value+  1, count); }
                          } ;


/**
 * Formats Quarter field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatQuarter_=  function (count, date){
  var value=  Math.floor(date.getMonth( )/ 3);
  return count<  4
         ?           this.symbols_.SHORTQUARTERS[value]
         :           this.symbols_.QUARTERS[value];
                                                                            } ;
/**
 * Formats Date field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatDate_=  function (count, date){
  return goog.string.padNumber(date.getDate( ),count);
                                                                         } ;

/**
 * Formats Minutes field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatMinutes_=  function (count, date){
  return goog.string.padNumber(date.getMinutes( ),count);
                                                                            } ;

/**
 * Formats Seconds field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.locale.DateTimeFormat.prototype.formatSeconds_=  function (count, date){
  return goog.string.padNumber(date.getSeconds( ),count);
                                                                            } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Formats Era field according to pattern specified.
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatEra_= function (count,date)
                                                                 { var value=date.getFullYear( )>0
                                                                             ?1
                                                                             : 0;
                                                                   return count>=4
                                                                          ? [[#variable42e060c0]]. [[#variable60a29f00]].ERANAMES[value]
                                                                          : [[#variable42e060c0]]. [[#variable60a29f00]].ERAS[value];
                                                                 } ;
/**
 * Formats Year field according to pattern specified
 *   Javascript Date object seems incapable handling 1BC and
 *   year before. It can show you year 0 which does not exists.
 *   following we just keep consistent with javascript's
 *   toString method. But keep in mind those things should be
 *   unsupported.
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatYear_= function (count,date)
                                                                  { var value=date.getFullYear( );
                                                                    if (value<0)
                                                                      { value=-value;
                                                                      }
                                                                    return count==2
                                                                           ?goog.string.padNumber(value%100,2)
                                                                           :String(value);
                                                                  } ;
/**
 * Formats Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatMonth_= function (count,date)
                                                                   { var value=date.getMonth( );
                                                                     switch (count)
                                                                     { case 5:
                                                                         return [[#variable42e060c0]]. [[#variable60a29f00]].NARROWMONTHS[value];
                                                                       case 4:
                                                                         return [[#variable42e060c0]]. [[#variable60a29f00]].MONTHS[value];
                                                                       case 3:
                                                                         return [[#variable42e060c0]]. [[#variable60a29f00]].SHORTMONTHS[value];
                                                                       default:
                                                                         return goog.string.padNumber(value+1,count); }
                                                                   } ;
/**
 * Formats (1..24) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats. This controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.format24Hours_= function (count,date)
                                                                     { return goog.string.padNumber(date.getHours( )
                                                                                                    || 24,count);
                                                                     } ;
/**
 * Formats Fractional seconds field according to pattern
 * specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 *
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatFractionalSeconds_= function (count,date)
                                                                               {
                                                                                 // Fractional seconds left-justify, append 0 for precision beyond 3
                                                                                 var value=date.getTime( )%1000/1000;
                                                                                 return value.toFixed(Math.min(3,count)).substr(2)+(count>3
                                                                                                                                    ?goog.string.padNumber(0,count-3)
                                                                                                                                    : '');
                                                                               } ;
/**
 * Formats Day of week field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatDayOfWeek_= function (count,date)
                                                                       { var value=date.getDay( );
                                                                         return count>=4
                                                                                ? [[#variable42e060c0]]. [[#variable60a29f00]].WEEKDAYS[value]
                                                                                : [[#variable42e060c0]]. [[#variable60a29f00]].SHORTWEEKDAYS[value];
                                                                       } ;
/**
 * Formats Am/Pm field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatAmPm_= function (count,date)
                                                                  { var hours=date.getHours( );
                                                                    return [[#variable42e060c0]]. [[#variable60a29f00]].AMPMS[hours>=12
                                                                                                                              && hours<24
                                                                                                                              ?1
                                                                                                                              : 0];
                                                                  } ;
/**
 * Formats (1..12) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.format1To12Hours_= function (count,date)
                                                                        { return goog.string.padNumber(date.getHours( )%12
                                                                                                       || 12,count);
                                                                        } ;
/**
 * Formats (0..11) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.format0To11Hours_= function (count,date)
                                                                        { return goog.string.padNumber(date.getHours( )%12,count);
                                                                        } ;
/**
 * Formats (0..23) Hours field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.format0To23Hours_= function (count,date)
                                                                        { return goog.string.padNumber(date.getHours( ),count);
                                                                        } ;
/**
 * Formats Standalone weekday field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatStandaloneDay_= function (count,date)
                                                                           { var value=date.getDay( );
                                                                             switch (count)
                                                                             { case 5:
                                                                                 return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONENARROWWEEKDAYS[value];
                                                                               case 4:
                                                                                 return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONEWEEKDAYS[value];
                                                                               case 3:
                                                                                 return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONESHORTWEEKDAYS[value];
                                                                               default:
                                                                                 return goog.string.padNumber(value,1); }
                                                                           } ;
/**
 * Formats Standalone Month field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatStandaloneMonth_= function (count,date)
                                                                             { var value=date.getMonth( );
                                                                               switch (count)
                                                                               { case 5:
                                                                                   return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONENARROWMONTHS[value];
                                                                                 case 4:
                                                                                   return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONEMONTHS[value];
                                                                                 case 3:
                                                                                   return [[#variable42e060c0]]. [[#variable60a29f00]].STANDALONESHORTMONTHS[value];
                                                                                 default:
                                                                                   return goog.string.padNumber(value+1,count); }
                                                                             } ;
/**
 * Formats Quarter field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatQuarter_= function (count,date)
                                                                     { var value=Math.floor(date.getMonth( )/3);
                                                                       return count<4
                                                                              ? [[#variable42e060c0]]. [[#variable60a29f00]].SHORTQUARTERS[value]
                                                                              : [[#variable42e060c0]]. [[#variable60a29f00]].QUARTERS[value];
                                                                     } ;
/**
 * Formats Date field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatDate_= function (count,date)
                                                                  { return goog.string.padNumber(date.getDate( ),count);
                                                                  } ;
/**
 * Formats Minutes field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatMinutes_= function (count,date)
                                                                     { return goog.string.padNumber(date.getMinutes( ),count);
                                                                     } ;
/**
 * Formats Seconds field according to pattern specified
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog. [[#variable42e063c0]].DateTimeFormat.prototype.formatSeconds_= function (count,date)
                                                                     { return goog.string.padNumber(date.getSeconds( ),count);
                                                                     } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#42e063c0]]
locale 
12[[#42e063c0]]
i18n 
21[[#42e060c0]]
this 
22[[#42e060c0]]
goog.i18n 
31[[#60a29f00]]
symbols_ 
32[[#60a29f00]]
DateTimeSymbols