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

ÈÕÆÚº¯Êý¸ñʽlinux/windowsÇó½â~~~

Java code:

public static String getDateString(String lDate) {
String x = lDate.trim();
String retStr = null;
if (x == null || x == "") {
x = "0";
}
if (x != "0") {
x = x + "000";
long idate = Long.parseLong(x);
Date date = new Date(idate);
DateFormat df = DateFormat.getDateInstance(DateFormat.DEFAULT);
retStr = df.format(date);
} else {
Date date = new Date();
SimpleDateFormat formater = new SimpleDateFormat();
formater.applyPattern("yyyy-M-dd");
retStr = formater.format(date);
}
return retStr;
}
System.out.println(getDateString("1252641537"));



ÔÚwindowsÏÂÊÇ
2009-9-11
linuxϾͱä³É
Sep 11, 2009

Çó½â¡£¡£



¸úÄãµÄLocaleÓйØϵ°É °´ÕÕÎÒµÄÓ¡Ïó£¬ÄãlinuxÏÂÃæÄÇÖÖÊä³öÓ¦¸ÃÊÇLocale.English

Ôõô¸ÄÄØ£¿

ÒýÓÃ
Ôõô¸ÄÄØ£¿

ÄãÊÇÒªlinux¸úWindowsµÄÒ»Ñù ÊÇÂð£¿
ÆäʵSimpleDateFormatÓÐÒ»¸ö¹¹Ôì·½·¨£¬¿ÉÒÔÇ¿ÖƸñʽ»¯³ÉÖ¸¶¨LocaleµÄʱ¼ä¸ñʽSimpleDateFormat(String pattern, Locale locale)

¶ÔµÄ ÎÒÊÇÐèÒª2009-9-11
ÕâÖÖ¸ñʽµÄÊä³ö

Java code


Ïà¹ØÎÊ´ð£º

ARM LINUXÉÏÓÃCдÎļþµÄÎÊÌâ

C/C++ code:

char Time="2009-9-23";
FILE *fpOut=fopen("1.txt","w+");
if(fpOut==NULL)
return ;

fwr ......

Ë­Äܸø¸öLinuxÏÂдC/C++³ÌÐòµÄ½Ì³Ì£¿

¸ø¸öµØÖ·£¬»òÕß·¢µ½ÎÒÓÊÏäÒ²ÐÐ wrongagain98@163.com
×îºÃÊÇÊÓƵµÄ£¬²»ÊÇÊÓƵÆÕͨµÄÒ²ÐС£

Ö÷ÒªÊÇÁ½·½Ã棺
1.ÔõÑù±à¼­¡¢±àÒëºÍµ÷ÊÔ³ÌÐò¡£Ï£ÍûÄÜÒ»²½²½½²Çå³þ£¬ÈçºÎ°²×°¡¢ÈçºÎÅäÖõȡ£²»Òª¾Íֻ˵¾ä¡°¾ÍÓ ......

£ÛÇóÖú£ÝlinuxÍøÂç±à³ÌÖÐselect³ö´í

Ä¿±ê£ºµ±ÍøÂçÖÐÓÐÊý¾Ýµ½´ï»òÕß³¬Ê±£¬³ÌÐò½øÈëÏÂÒ»´ÎÑ­»·¡£
ÎÊÌ⣺select()º¯Êý²»Æð×÷Ó㬳ÌÐò²»»áÔÚselectµÄµØ·½×èÈûÒ»Ã룬²¢ÇÒµ±ÍøÂçÉÏÓÐÊý¾ÝµÄʱºò£¬selectµÄ·µ»ØÖµÈÔȻСÓÚ0
    #include <s ......

ǶÈëʽLinuxËõ¼õÎÊÌâ

´ó¼ÒºÃ£¬±¾ÈËÄ¿Ç°¸Õ¸Õ½Ó´¥Linux¡£ÏÖÔÚ¹«Ë¾µÄÏîÄ¿ÐèÒªËõ¼õLinuxµÄKernelºÍAPP²¿·ÖµÄCode Size¡£Ä¿Ç°ÎÒÃÇʹÓõÄÊÇLinux2.6.22.15°æ±¾£¬Ó¦ÓÃÓÚADSL Modem£¨¼ÒÍ¥Íø¹Ø£©¡£

1.ÎÒÃDzúÆ·Ó¦ÓÃÊÇADSL Gateway£¬Kernel²¿ ......

javaÈçºÎ¿ØÖÆÔ¶³ÌLinuxÖØÆô

ÎÒÄ¿Ç°ÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃ棬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ