- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
String.format(
"<b>%s:%s %s %s %d</b>",
setDisplayFromNumber(calendar.get(GregorianCalendar.HOUR_OF_DAY)),
setDisplayFromNumber(calendar.get(GregorianCalendar.MINUTE)),
setDisplayFromNumber(calendar.get(GregorianCalendar.DAY_OF_MONTH)),
getMonthNameFromNumber(calendar.get(GregorianCalendar.MONTH)),
calendar.get(GregorianCalendar.YEAR)
);
private String setDisplayFromNumber(Integer number) {
if(number < 10) {
return String.format("0%d", number);
}
else {
return number.toString();
}
}
Lure Of Chaos 24.06.2010 13:04 # 0
Мистер Хэнки 24.06.2010 13:32 # +1
>> return String.format("0%d", number);
>>}
ололо
inkanus-gray 24.06.2010 14:15 # 0