Date °³Ã¼ÀÇ ½Ã°£°ªÀ» ¹ÝȯÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
object

ÇʼöÀûÀÎ object ÂüÁ¶´Â Date °³Ã¼ÀÌ´Ù.

ÆĶó¸ÞÅÍ

ÆĶó¸ÞÅÍ´Â ¾ø´Ù.

¹Ýȯ°ª

¹Ýȯ°ª iTime´Â 1970³â 1¿ù 1ÀÏ ÀÚÁ¤°ú Date °³Ã¼ÀÇ ½Ã°£°ª(ÇöÀç½Ã°£) »çÀÌÀÇ ½Ã°£À» ¹Ð¸®ÃÊ ´ÜÀ§·Î ³ªÅ¸³»´Â Á¤¼ö°ªÀ» ¹ÝȯÇÑ´Ù.

¼³¸í

³ªÅ¸³¾ ¼ö ÀÖ´Â ÀÏÀÚ ¹üÀ§´Â 1970³â 1¿ù 1ÀÏ ÀÚÁ¤À» ÀüÈÄ·Î ¾à 285,616³âÀÌ´Ù.
À½¼ö´Â ÇØ´ç ÀÏÀÚ°¡ 1970³â ÀÌÀüÀÓÀ» ³ªÅ¸³½´Ù.



°£´ÜÇÑ getTime ¸Þ¼­µå ¿¹Á¦

<SCRIPT>document.write('Áö±ÝÀº ÇöÀç ½Ã°¢°ªÀº '+new Date().getTime()+' ¹Ð¸®ÃÊÀÌ´Ù.');</SCRIPT>

ÇöÀç½Ã°£ Ãâ·Â getTime ¸Þ¼­µå ¿¹Á¦

<SCRIPT>
var br='<BR>'; // ÁٹٲÞ
var str=''; // Ãâ·Â ¹®ÀÚ¿­ º¯¼ö ¼±¾ð
var ss1=' Áö³µ´Ù.';
var now=new Date(); // ÇöÀç ½Ã°£À» º¯¼ö¿¡ ÇÒ´ç
var time=now.getTime();
str+='time=now.getTime()='+now.getTime()+br;
str+='1970/1/1 ÀÌÈÄ·Î <blockquote>';
str+='now.getTime()='+now.getTime()+' ¹Ð¸®ÃÊ'+ss1+br;
str+='now.getTime()/1000='+now.getTime()/1000+' ÃÊ'+ss1+br;
str+='Math.round(now.getTime()/1000/60)='+Math.round(now.getTime()/1000/60)+' ºÐ'+ss1+br;
str+='Math.round(now.getTime()/1000/60/60)='+Math.round(now.getTime()/1000/60/60)+' ½Ã°£'+ss1+br;
str+='Math.round(now.getTime()/1000/60/60/24)='+Math.round(now.getTime()/1000/60/60/24)+' ÀÏ'+ss1+br;
str+='Math.round(now.getTime()/1000/60/60/24/30)='+Math.round(now.getTime()/1000/60/60/24/30)+' °³¿ù'+ss1+br;
str+='Math.round(now.getTime()/1000/60/60/24/30/12)='+Math.round(now.getTime()/1000/60/60/24/30/12)+' ³â'+ss1+br;
str+='</blockquote>';
document.write(str); // °á°ú ¹®ÀÚ¿­ Ãâ·Â
</SCRIPT>