Internet °ü·Ã ÀÚ·á |
---|
Á¦¸ñ | [Java] currentTimeMillis 1998/10/09 (13:46) |
À̸§ | ±èÈ¿¿ø |
¹øÈ£ | 49 |
Á¶È¸ | 336 |
º»¹® |
The System Class static long currentTimeMillis() returns the current system time in milliseconds. GMT 1970³â 1¿ù 1ÀÏÀ» ±âÁØÀ¸·Î ÇöÀç±îÁö Áö³ª°£ ½Ã°£À» º¸¿©ÁØ´Ù. import java.util.Date; public class Date2{ public static void main(String args[]){ Date today=new Date(); System.out.println(today); System.out.println(today.getTime()); System.out.println(System.currentTimeMillis()); } } // Output Fri Oct 09 13:48:24 JST 1998 907908504869 907908505020 |