linux µÄʱÇøÉèÖú¯Êýtzset()
±¾ÎÄתÔØÓÚ£º http://hi.baidu.com/peruke/blog/item/b8de06ec6a04583b27979132.html
tzset
#incude <time.h
>
void tzset(void);
ÉèÖÃʱ¼ä»·¾³±äÁ¿¡£
˵Ã÷
tzset()º¯ÊýʹÓû·¾³±äÁ¿TZµÄµ±Ç°ÉèÖðÑÖµ¸³¸øÈý¸öÈ«¾Ö±äÁ¿:daylight,timezoneºÍtzname¡£
ÕâЩ±äÁ¿ÓÉftimeºÍlocaltimeº¯ÊýʹÓÃУÕý¸ñÁÖÍþÖÎ(UTC)ʱ¼äΪ±¾µØʱ¼ä,ͨ¹ýtimeº¯Êý´Óϵͳʱ¼ä¼ÆËãUTC,ʹÓÃÈçÏÂÓï·¨ÉèÖÃTZ»·¾³±äÁ¿:
set TZ=tzn[+|-]hh[:mm[:ss]][dzn]
tzn£ºÈý×ÖĸʱÇøÃû,ÀýÈçPST,Äã±ØÐëÖ¸³ö±¾µØʱ¼ä¾àUTCµÄÆ«ÒÆÁ¿¡£
hh£ºUTCÓë±¾µØʱ¼äµÄʱ²î,ÈÎÑ¡´ø·ûºÅµÄ¡£
mm£º·ÖÖÓ,ÓÉðºÅ(:)Óëhh·Ö¸ô¿ª¡£
ss£ºÃëÖÓ,ÓÃðºÅ(:)Óëmm·Ö¸ô¿ª¡£
dzn£ºÈý×ÖĸÏÄÁîʱʱÇøÀýÈçPDT¡£Èç¹ûÏÄÁîʱû×÷ÓÃ,ÉèÖÃTZʱ²»ÉèÖÃdznµÄÖµ¡£CÔËÐпâ¼ÙÉèÔÚ¼ÆËãÏÄÁîʱ(DST)ʱִÐÐÃÀ¹úµÄ¹æÔò¡£
ÆäʵtznºÍdzn¿ÉΪÈÎÒâ3¸ö×Öĸ£¬Ö»ÒªÖмäµÄʱ²îÉèÖÃÕýÈ·£¬localtime£¨£©ºÍgmtime£¨£©º¯Êýµ÷Óö¼»á´¦ÀíÕýÈ·¡£Òª×¢ÒâÒ»µã£¬±ÈÈçÒª½«Ê±ÇøTZÉèÖÃΪÖйúËùÔڵĶ«°ËÇø£¨¼´UTC+8:00£©£¬²»Ê¹ÓÃÏÄÁîʱ£¬Ê¹ÓÃÈçÏÂÓï¾ä£º
setenv("TZ", "GMT-8", 1);
×¢ÒâÊÇGMT-8¶ø²»ÊÇGMT+8£¬Òª²»¾ÍÉèΪÁËÎ÷°ËÇø£¬Òª±ÈUTC»¹Âý8¸öСʱ£¬ÕâÒ»µã±È½ÏÁîÈ˷ѽ⡣
ÀýÈç,ΪÁËÉèÖÃTZ»·¾³ÎªµÂ¹ú¶ÔÓ¦µÄµ±Ç°Ê±Çø,Äã¿ÉÒÔʹÓÃÈçÏÂÓï¾äÖ®Ò»:
set TZ=GST-1GDT
set TZ=GST+1GDT
ÕâЩ×Ö·û´®Ê¹ÓÃGSTÖ¸³öµÂ¹ú±ê׼ʱ¼ä,¼ÙÉèµÂ¹úÊdz¬Ç°UTCÒ»¸öСʱ,²¢¼ÙÉèÏÄÁîʱÆð×÷Óá£
Èç¹ûTZֵûÉèÖÃ,tzsetÊÔͼʹÓòÙ×÷ϵͳָ¶¨µÄʱÇøÐÅÏ¢,ÔÚWindwos NTºÍWindows95Ö®ÏÂ,Õâ¸öÐÅÏ¢Ö¸¶¨ÔÚ¿ØÖÆÃæ°æµÄÈÕÆÚ/ʱ¼äÓ¦ÓÃÖÐ,Èç¹ûtzset²»ÄÜ»ñÈ¡ÕâЩÐÅÏ¢,ËüȱʡʹÓÃPST8PDT,ËüÖ¸¶¨ÎªÌ«Æ½Ñó±ê׼ʱ¼ä¡£
»ùÓÚTZ»·¾³±äÁ¿µÄÖµ,µ±µ÷ÓÃtzsetʱ°ÑÈçÏÂÖµ¸³¸øÈ«¾Ö±äÁ¿daylight¡¢timezoneºÍtzname:
È«¾Ö±äÁ¿ ˵Ã÷ ȱʡֵ
daylight Èç¹ûÔÚTZÉèÖÃÖÐÖ¸¶¨ÏÄÁîʱʱÇø 1ÔòΪ·Ç0Öµ;·ñÔòΪ0
timezone UTCº
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
תÌùµØÖ·: Cy158358.cublog.cn
#!/bin/sh
check_patch()
{
test -d $1
return
}
#¼ì²é·¾¶ÊÇ·ñ´æÔÚ
check_patch $2
if [ $? -ne 0 ]
then
echo "no such path $2"
exit 1
fi
if [ "$1" = "name" ]
then
#²éÕÒtxtÎļþ
echo " ......
http://www.xfocus.net/articles/200509/820.html
´´½¨Ê±¼ä£º2005-09-09
ÎÄÕÂÊôÐÔ£ºÔ´´
ÎÄÕÂÌá½»£ºxcspy
(xcspy.com_at_gmail.com)
×÷Õߣºxcspy³ÉÔ± ladybug
E-mail£ºxcspy.com@gmail.com
Ö÷Ò³£ºwww.xcspy.com
1. ¼¸ÖÖÄں˵÷ÊÔ¹¤¾ß±È½Ï
kdb£ºÖ»ÄÜÔÚ»ã±à´úÂ뼶½øÐе÷ÊÔ£»
ÓŵãÊDz»ÐèÒª ......
==================ÍøÂçµÄ»ù±¾ÅäÖÃ===================
IPµØÖ·£ºÍøÂ粿·ÖºÍÖ÷»ú²¿·Ö
192.168.1.123 255.255.255.0 255=11111111 (255.255.255.192)
192.168.1.234/24 =24¸ö1
Íø¹Ø£º¼ÆËã»úÔÚ±¾µØÍøÂçÕÒ²»µ½Ä¿±êÖ÷»úʱ£¬×Ô¶¯ÏòÍø¹Ø·¢ËÍÊý¾Ý°ü
Ò»°ãÊÇÒ»¸ö·ÓÉÆ÷»òNAT·þÎñÆ÷£¨´úÀí·þÎñÆ÷£©
......
Æäʵ£¬Ã¿Ò»ÖÖLinuxǶÈëʽϵͳÎļþϵͳ¶¼ÓÐÆ䲻ͬµÄ×÷ÓúÍÌص㣬ÌرðÊÇϵͳÎļþ£¬Ëü³ÐÔØ×ÅϵͳÊÇ·ñ¿ÉÒÔ°²È«ÔËÐУ¬Èç¹û³öÏÖ´íÎó£¬ÄÇô½«µ¼ÖÂϵͳÍ˳ö£¬ÑÏÖØÓ°ÏìÎÒÃǵÄʹÓá£Ç¶ÈëʽϵͳÎļþϵͳ±È½Ïjffs2, yaffs, cramfs, romfs, ramdisk, ramfs/tmpfs£¬Linux Ö§³Ö¶àÖÖÎļþϵͳ£¬°üÀ¨ext ......