formatField method
void
formatField(
- String formatChar,
- int count
)
Implementation
@protected void formatField(String formatChar, int count)
{
switch (formatChar)
{
// Use big-endian order of cases.
case 'y':
_formatYear(count);
break;
case 'M':
_formatMonth(count);
break;
case 'd':
_formatDayOfMonth(count);
break;
case 'E':
_formatDayOfWeek(count);
break;
case 'h':
_formatHours(count);
break;
case 'm':
_formatMinutes(count);
break;
case 'a':
_formatAmPm(count);
break;
default:
// If not a command, append verbatim.
sb.write(formatChar);
}
}