Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Javaʱ¼äº¯Êý

String   posttime=new   java.text.SimpleDateFormat("yyyy-MM-dd   HH:mm:sss").format(   java.util.Calendar.getInstance().getTime()   );
1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.                                                                                                                                                               
2. DateÀàµÄ¹¹Ô캯ÊýDate()·µ»Ø´ú±íµ±Ç°´´½¨µÄʱ¿ÌµÄ¶ÔÏó¡£DateµÄ·½·¨getTime()·µ»ØÒ»¸ölongÖµÔÚÊýÖµÉϵÈÓÚ1970Äê1ÔÂ1ÈÕ֮ǰ»òÖ®ºóµÄʱ¿Ì¡£
3. DateFormatÀàÓÃÀ´×ª»»Dateµ½String,·´Ö®ÒàÈ»¡£¾²Ì¬·½·¨getDateInstance()·µ»ØDateFormatµÄȱʡ¸ñʽ£»getDateInstance(DateFormat.FIELD)·µ»ØÖ¸¶¨µÄDateFormat¶ÔÏó¸ñʽ¡£Format(Date d)·½·¨·µ»ØString±íʾÈÕÆÚ£¬ÀýÈ磢January 1,2002.£¢·´¹ýÀ´£¬parse(String s)·½·¨·µ»ØÒÔ²ÎÊý×Ö·û´®±íʾµÄDate¶ÔÏó¡£
4. format()·½·¨·µ»ØµÄ×Ö·û´®¸ñʽ¸ù¾Ý²»Í¬µØÇøµÄʱ¼äÉèÖöøÓÐËù²»Í¬¡£
5. GregorianCalendearÀàÓÐÁ½¸öÖØÒªµÄ¹¹Ô캯Êý£ºGregorianCalerdar(),·µ»Ø´ú±íµ±Ç°´´½¨Ê±¼äµÄ¶ÔÏó£»GregorianCalendar(int year,int month,int date)·µ»Ø´ú±íÈÎÒâÈÕÆڵĶÔÏó¡£GregorianCalendarÀàµÄgetTime()·½·¨·µ»ØÈÕÆÚ¶ÔÏó¡£Add(int field,int amount)·½·¨Í¨¹ý¼Ó»ò¼õʱ¼äµ¥Î»£¬ÏóÌìÊý£¬ÔÂÊý»òÄêÊýÀ´¼ÆËãÈÕÆÚ¡£
GregorianCalendarºÍ ʱ¼ä
Á½¸öGregorianCalendarµÄ¹¹Ô캯Êý¿ÉÒÔÓÃÀ´´


Ïà¹ØÎĵµ£º

javaÊý×é

Êý×éÊôÒýÓÃÀàÐÍ£¬Êý×éÐÍÊý¾ÝÊǶÔÏó(object)£¬Êý×éÖеÄÿ¸öÔªËØÏ൱ÓڸöÔÏóµÄ³ÉÔ±±äÁ¿
Êý×éÖеÄÔªËØ¿ÉÒÔÊÇÈκÎÊý¾ÝÀàÐÍ£¬°üÀ¨»ù±¾ÀàÐͺÍÒýÓÃÀàÐÍ
¼ÇסÊý×éÊ×ÏÈ·ÖÅä¿Õ¼äÔÙ¸³Öµ£¡
¶¯Ì¬³õʼ»¯£º¾ÍÊÇÏÈ·ÖÅä¿Õ¼äÔÙ¸³³õÖµ£»
¾²Ì¬³õʼ»¯£º¶¨ÒåÊý×éͬʱ¾ÍΪÊý×éÔªËØ·ÖÅä¿Õ¼ä²¢¸³Öµ¡£
1һάÊý×éµÄÉùÃ÷
һάÊý×éµÄÉùÃ÷£ºtype va ......

Java¶àÏß³Ì

¶àÏß³Ì
Ị̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì¡£
Ïß³ÌÓë½ø³ÌµÄÇø±ð£ºÃ¿¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·¿Õ¼ä£¬¶øͬһ½ø³ÌÖеÄËùÓÐÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼äÖй¤×÷£¬ÕâЩÏ߳̿ÉÒÔ¹²Ïíͬһ¿éÄÚ´æºÍϵͳ×ÊÔ´¡£
ÈçºÎ´´½¨Ò»¸öỊ̈߳¿
´´½¨Ïß³ÌÓÐÁ½ÖÖ·½Ê½£¬ÈçÏ£º
1¡¢ À©Õ¹java.lang.ThreadÀà
2¡¢ ʵÏÖRunnable½Ó¿Ú ......

Javaµ¥Àýģʽ

  ×÷Ϊ¶ÔÏóµÄ´´½¨Ä£Ê½,µ¥Àýģʽȷ±£Ä³¸öÀàÖ»ÓÐÒ»¸öʵÀý£¬¶øÇÒ×ÔÐÐʵÀý»¯²¢ÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£Õâ¸öÀà³ÆΪµ¥ÀýÀà¡£Óɶ¨Òå¿ÉÒÔ×ܽá³öµ¥ÀýģʽµÄÒªµãÓÐÈý¸ö£ºÒ»Êǵ¥ÀýÀàÖ»ÄÜÓÐÒ»¸öʵÀý£»¶þÊÇËü±ØÐë×ÔÐд´½¨Õâ¸öʵÀý£»ÈýÊÇËü±ØÐë×ÔÐÐÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£
    ÔÚ¼ÆËã»úϵͳÖУ¬Ï̳߳ء¢»º´æ¡¢ÈÕÖ ......

javadoc£¬ÔÚ Java µÄ×¢ÊÍÉÏ×öÎÄÕÂ

Ŀ¼
¡¡¡¡Ç°ÑÔ
¡¡¡¡Ò». Java ÎĵµºÍ javadoc
¡¡¡¡¶þ. Îĵµ×¢Ê͵ĸñʽ
¡¡¡¡¡¡¡¡1. Îĵµ×¢Ê͵ĸñʽ»¯
¡¡¡¡¡¡¡¡2. Îĵµ×¢Ê͵ÄÈý²¿·Ö

¡¡¡¡Èý. ʹÓà javadoc ±ê¼Ç
¡¡¡¡¡¡¡¡1. @see µÄʹÓÃ
¡¡¡¡¡¡¡¡2. ʹÓà @author¡¢@version ˵Ã÷Àà
¡¡¡¡¡¡¡¡3. ʹÓà @param¡¢@return ºÍ @exception ˵Ã÷·½·¨
¡¡¡ ......

javaÖеķâ×°Àà

·â×°ÀàÒ²½Ð°ü×°À࣬ÊÇÕë¶Ô°ËÖÖ»ù±¾¶¨ÒåÏàÓ¦µÄÒýÓÃÀàÐÍ¡£
      »ù±¾Êý¾ÝÀàÐÍ             ·â×°Àà
          boolean           &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ