|
||
0
0
Åä¹ÚÀÌ1
¾Æ¾Æ °¨»çÇÕ´Ï´Ù!!! now º¯¼ö°¡ ¿Ö ÀԷ¹ÞÁö¸øÇÒ±î¿ä
|
0
0
[* ºñȸ¿ø *]
Áö¿öÁö´Â ±Û¿¡´Â ´ä ¾È´Ù´Âµ¥...
nowTick °è»ê ¾È‰Ñ±¸¸¸¿ä |
0
0
Åä¹ÚÀÌ1
¾Æ¾Æ Áö¿ö¼ Á˼ÛÇÕ´Ï´Ù
|
0
0
Åä¹ÚÀÌ1
int gap = christmasTick - now;
System.out.println(gap); |
0
0
Åä¹ÚÀÌ1
Calendar now = Calendar.getInstance();
Calendar christmas = Calendar.getInstance(); christmas.set(2015, 11, 25); long christmasTick = christmas.getTime().getTime(); int gap = christmasTick - now; System.out.println(gap); System.out.printf("¿ÃÇØ Å©¸®½º¸¶½º´Â %dÀÏ ³²¾Ò½À´Ï´Ù.\n", gap / 1000 / 60 / 60 / 24); } } |
0
0
Åä¹ÚÀÌ1
long christmasTick = christmas.getTime().getTime();
ÀÌ°Ô Date nowDate = now.getTime(); long nowTick = nowDate.getTime(); ¾Æ´Ñ°¡¿ä ?? À̶§ nowTickÀ» ÁöÁ¤Ç޴µ¥ .. |
0
0
[* ºñȸ¿ø *]
long christmasTick = christmas.getTime().getTime(); -<¿©±â ÁÁÀº ¿¹Á¦°¡ Àճ׿ä.
|
0
0
Åä¹ÚÀÌ1
ÇØ°á‰Ñ½À´Ï´Ù °¨»çÇÕ´Ï´Ù
|
|
|
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û | ¸ñ·Ïº¸±â |
¾Æ±î µå¸° ¸µÅ© Àß ÀÌÇØÇϽøé Àú°Íµµ ÇØ°áÀÌ µÉ°Ì´Ï´Ù.
Java Calendar °ü·ÃÇؼ ±¸±Û °Ë»öÇϽøé ÀÚ·á ¸¹ÀÌ ³ª¿Ã°Ì´Ï´Ù.
±×¸®°í..±Û Áö¿ì½Ã¸é ¾ÈµË´Ï´Ù.
°è¼Ó Áú¹®¿Ã¸®½Ã°í ±Û Áö¿ì½Ã¸é ´ÙÀ½¹ø¿¡ ¾Æ¹«µµ ´äº¯ ¾È´Þ¾Æ µå¸³´Ï´Ù.