
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
01.12.2004, 08:25
|
|||
|---|---|---|---|
|
|||
Попробуйте data.getMonth() 1 дек. 2004 года |
|||
|
#18+
Сегодня утром отрабатываю такой код: data=new Date(); System.out.println(data.toString()); System.out.println(data.getMonth()); А вот результат: Wed Dec 01 08:19:30 MSK 2004 11 Месяц 11-й !!!!!!!!!! Вчера 30 октября тоже был 11. Кто знает в чем проблема? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
01.12.2004, 08:27
|
|||
|---|---|---|---|
|
|||
Попробуйте data.getMonth() 1 дек. 2004 года |
|||
|
#18+
Поправка: вчера было 30 ноября. :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
01.12.2004, 09:22
|
|||
|---|---|---|---|
|
|||
Попробуйте data.getMonth() 1 дек. 2004 года |
|||
|
#18+
во-первых: public int getMonth() Returns a number representing the month that contains or begins with the instant in time represented by this Date object. The value returned is between 0 and 11, with the value 0 representing January во-вторых, метод уже deprecated: Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.MONTH). -- FUCK THE iNET!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2153346]: |
0ms |
get settings: |
7ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
42ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
| others: | 193ms |
| total: | 297ms |

| 0 / 0 |
