2008年01月07日 星期一 15:50
³ÌÐòÀïÃæÓÃÁËlogging,ĬÈϵÄasctimeÊä³öµÄʱ¼äÔçÁË8¸öСʱ,±ÈÈçÏÖÔÚÊÇ15:45,ËüÊä³öµÄÊÇ05:45,ÎҵĴúÂë: ÎÒÒѾÏÔʽָ¶¨ÁËdatefmtΪĬÈϸñʽ, logger=logging.getLogger('IMR') logger.setLevel(logging.DEBUG) imrFormatter = logging.Formatter('%(asctime)s |##| %(message)s',datefmt='%Y-%m-%d %H:%M:%S') ƽ̨: ubuntu server 7.10 ʱÇø: Asia/Shanghai ÓÃpython²é¿´: >>> import time >>> time.asctime() 'Mon Jan 7 15:48:34 2008' >>> È»ºó³ÌÐòµÄÊä³ö»¹ÊÇÀàËÆÓÚ 2008-01-07 07:33:39 |##| ÕâÑùµÄ¸ñʽ,ÕûÕûÔçÁË8Сʱ, ÔÚÁíһ̨RHELÉÏÔËÐÐÒ²ÊÇÒ»ÑùµÄÇé¿ö,,,, ÓÐËÓöµ½¹ýÀàËÆÇé¿öÂð?ÇëÖ¸½Ì. -- DJ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080107/64eba6df/attachment.html
2008年01月07日 星期一 16:33
ʱÇø ʱ²î£¿ On 1/7/08, Arui Zen <dujunfly在gmail.com> wrote: > > ³ÌÐòÀïÃæÓÃÁËlogging,ĬÈϵÄasctimeÊä³öµÄʱ¼äÔçÁË8¸öСʱ,±ÈÈçÏÖÔÚÊÇ15:45,ËüÊä³öµÄÊÇ05:45,ÎҵĴúÂë: > ÎÒÒѾÏÔʽָ¶¨ÁËdatefmtΪĬÈϸñʽ, > > logger=logging.getLogger('IMR') > logger.setLevel(logging.DEBUG) > imrFormatter = logging.Formatter('%(asctime)s |##| > %(message)s',datefmt='%Y-%m-%d %H:%M:%S') > > > ƽ̨: > ubuntu server 7.10 > ʱÇø: Asia/Shanghai > > ÓÃpython²é¿´: > >>> import time > >>> time.asctime() > 'Mon Jan 7 15:48:34 2008' > >>> > > È»ºó³ÌÐòµÄÊä³ö»¹ÊÇÀàËÆÓÚ > 2008-01-07 07:33:39 |##| > ÕâÑùµÄ¸ñʽ,ÕûÕûÔçÁË8Сʱ, > > ÔÚÁíһ̨RHELÉÏÔËÐÐÒ²ÊÇÒ»ÑùµÄÇé¿ö,,,, > ÓÐËÓöµ½¹ýÀàËÆÇé¿öÂð?ÇëÖ¸½Ì. > > -- > > DJ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080107/7a990bac/attachment.html
2008年01月07日 星期一 16:45
1. 2̨»úÆ÷£¿ 2. Èç¹ûÊÇ2̨»úÆ÷£¬Server µÄʱÇøÊÇʲô£¬ Client µÄʱÇøÓÖÊÇʲô£¿ Date: Mon, 7 Jan 2008 16:33:12 +0800 From: askfor在gmail.com To: python-chinese在lists.python.cn Subject: Re: [python-chinese] loggingÄ£¿é´¦Àíʱ¼äΪʲô»á²î¾à¸öСʱ,ÓÐËÓöµ½¹ýÂð? ʱÇø ʱ²î£¿ On 1/7/08, Arui Zen <dujunfly在gmail.com> wrote: ³ÌÐòÀïÃæÓÃÁËlogging,ĬÈϵÄasctimeÊä³öµÄʱ¼äÔçÁË8¸öСʱ,±ÈÈçÏÖÔÚÊÇ15:45,ËüÊä³öµÄÊÇ05:45,ÎҵĴúÂë: ÎÒÒѾÏÔʽָ¶¨ÁËdatefmtΪĬÈϸñʽ, logger=logging.getLogger ('IMR') logger.setLevel(logging.DEBUG) imrFormatter = logging.Formatter('%(asctime)s |##| %(message)s',datefmt='%Y-%m-%d %H:%M:%S') ƽ̨: ubuntu server 7.10 ʱÇø: Asia/Shanghai ÓÃpython²é¿´: >>> import time >>> time.asctime() 'Mon Jan 7 15:48:34 2008' >>> È»ºó³ÌÐòµÄÊä³ö»¹ÊÇÀàËÆÓÚ 2008-01-07 07:33:39 |##| ÕâÑùµÄ¸ñʽ,ÕûÕûÔçÁË8Сʱ, ÔÚÁíһ̨RHELÉÏÔËÐÐÒ²ÊÇÒ»ÑùµÄÇé¿ö,,,, ÓÐËÓöµ½¹ýÀàËÆÇé¿öÂð?ÇëÖ¸½Ì. -- DJ _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080107/451ee094/attachment.htm
2008年01月07日 星期一 18:15
ÎÒÊÇ˵ÔÚÎҵĻúÆ÷ÉÏÓÐÕâ¸öÎÊÌâ,ÉÏ´«µ½¿ª·¢·þÎñÆ÷ÉÏÔËÐл¹ÊÇÕâ¸öÎÊÌâ. ÓÃdateÃüÁî»òÕßÓÃpythonµÄtime.asctime()¶¼ÊÇÕýÈ·µÄʱ¼ä. ÔÚ08-1-7£¬tairan wang <python在tairan.net> дµÀ£º > > > 1. 2̨»úÆ÷£¿ > 2. Èç¹ûÊÇ2̨»úÆ÷£¬Server µÄʱÇøÊÇʲô£¬ Client µÄʱÇøÓÖÊÇʲô£¿ > > > ------------------------------ > Date: Mon, 7 Jan 2008 16:33:12 +0800 > From: askfor在gmail.com > To: python-chinese在lists.python.cn > Subject: Re: [python-chinese] loggingÄ£¿é´¦Àíʱ¼äΪʲô»á²î¾à¸öСʱ,ÓÐËÓöµ½¹ýÂð? > > ʱÇø ʱ²î£¿ > > On 1/7/08, *Arui Zen* <dujunfly在gmail.com> wrote: > > ³ÌÐòÀïÃæÓÃÁËlogging,ĬÈϵÄasctimeÊä³öµÄʱ¼äÔçÁË8¸öСʱ,±ÈÈçÏÖÔÚÊÇ15:45,ËüÊä³öµÄÊÇ05:45,ÎҵĴúÂë: > ÎÒÒѾÏÔʽָ¶¨ÁËdatefmtΪĬÈϸñʽ, > > logger=logging.getLogger ('IMR') > logger.setLevel(logging.DEBUG) > imrFormatter = logging.Formatter('%(asctime)s |##| > %(message)s',datefmt='%Y-%m-%d %H:%M:%S') > > > ƽ̨: > ubuntu server 7.10 > ʱÇø: Asia/Shanghai > > ÓÃpython²é¿´: > >>> import time > >>> time.asctime() > 'Mon Jan 7 15:48:34 2008' > >>> > > È»ºó³ÌÐòµÄÊä³ö»¹ÊÇÀàËÆÓÚ > 2008-01-07 07:33:39 |##| > ÕâÑùµÄ¸ñʽ,ÕûÕûÔçÁË8Сʱ, > > ÔÚÁíһ̨RHELÉÏÔËÐÐÒ²ÊÇÒ»ÑùµÄÇé¿ö,,,, > ÓÐËÓöµ½¹ýÀàËÆÇé¿öÂð?ÇëÖ¸½Ì. > > -- > > DJ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > ------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- DJ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080107/85e5d5c0/attachment.htm
Zeuux © 2024
京ICP备05028076号