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

»ñÈ¡Ä¿±êÖ÷»úʱ¼ä(C#) - .NET¼¼Êõ / C#

ÈçÌ⣬֪µÀÄ¿±êÖ÷»úIP£¬ÓÐϵͳÕË»§ÃûºÍÃÜÂ룬ÔõôʵÏÖ»ñÈ¡¸ÄÖ÷»úϵͳʱ¼ä¡£
PS£ºÎÒÊÇÐÂÊÖ£¬Ã»Óöµ½¹ýÕâÑùµÄÇé¿ö£¬Çë¸ßÊִͽ̣¡
¸ßÊÖ¶¼³Ô·¹È¥ÁË°¡£¿£¿×Ô¼º¶¥Æð~

SQL code:
select getdate()


ÔÙ¶¥£¬Òª³ÁÁË~~

HTML code:
<%=System.DateTime.Now.ToString()%>



ÒýÓÃ
SQL code
select getdate()

Õâ¸ö»ñµÃµÄÊÇ ±¾µØÊý¾Ý¿âµÄʱ¼ä¡£¡£

ÎÒÒªµÄÊÇ »ñÈ¡ÒÑ֪Ŀ±êÖ÷»úIP ÕË»§ ÃÜÂë µÄÔ¶³ÌÖ÷»úϵͳʱ¼ä

À´×Ô:http://hi.baidu.com/ysdonet/blog/item/88fe5e0250ecbd0a4bfb5133.html

ÔÚC#ÀïÃ棬ʱ¼äÏà¹ØµÄ¶ÔÏó¶¼ÔÚDataTime ÃüÃû¿Õ¼äÏ£¬²»¹ý·¢ÏÖÒ»°ã¶¼ÊÇÖ»ÄÜ»ñȡϵͳʱ¼äµÄ£¬ÎÞ·¨¶Ôϵͳʱ¼ä½øÐÐÐ޸ģ¬´ÓÍøÉϲéÁ˺ܳ¤Ê±¼ä×ÊÁϲŴÓhttp://www.csharphelp.com/ÕÒµ½½â¾ö·½·¨£¬ËüÊÇÀûÓÃAPIÀ´ÊµÏÖ¶Ôϵͳʱ¼äµÄÐ޸ġ£ 
¸ÃAPIÔÚC#ÊÇÕâÑùÉùÃûµÄ: 

using System.Runtime.InteropServices; 

//imports SetLocalTime function from kernel32.dll 
[DllImport("kernel32.dll", SetLastError=true)]  
public static extern int SetLocalTime (ref SystemTime lpSystemTime); 

//struct for date/time apis 
public struct SystemTime 

public short wYear; 
public short wMonth;&nbs


Ïà¹ØÎÊ´ð£º

Çó½Ìc/c++ÓïÑÔÏà¹ØÎÊÌâ - C/C++ / CÓïÑÔ

ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

visual c++2008²»ÄܱàÒëC³ÌÐòÂð - C/C++ / CÓïÑÔ

visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©

¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ

ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......

c# listviewÌí¼ÓºÏ¼ÆÐÐ - .NET¼¼Êõ / C#

ÓÃlistviewÏÔʾ³ö´ÓÊý¾Ý¿âÖвéѯ³öµÄ¼Ç¼£¬ÏëÔÚ×îºó¼Ç¼ºóÃæÌí¼ÓÒ»ÌõºÏ¼ÆÐУ¬ÈçºÎʵÏÖ£¡Ð»Ð»´ó¼Ò£¡
°ó¶¨Êý¾ÝÄãÓ¦¸ÃûÎÊÌâ°É£¬°ó¶¨ÍêÒÔºóÓÃÒ»¸öÑ­»·°ÑÄãҪͳ¼ÆÊý¾ÝµÄÁÐÖеÄÊý¾Ý×ܺÍÓÃÒ»¸ö±äÁ¿½ÓÊÜ£¬È»ºóÔÚÑ­»·ÍâÃæne ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ