Python论坛  - 讨论区

标题:[python-chinese] 怎样简便地在"HH:MM:SS"和时间戳之间转化?

2007年03月31日 星期六 16:44

wibrst.python wibrst.python在tom.com
星期六 三月 31 16:44:14 HKT 2007



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 16:54

jessinio smith jessinio在gmail.com
星期六 三月 31 16:54:40 HKT 2007

*HH:MM:SS ÊÇʲôÒâ˼£¿

ÊÇÖÐÎĵģ¬»¹ÊÇÓ¢Îĵģ¿£¿

ÊÇÊý×ֵģ¬»¹ÊÇÎÄ×ÖµÄ??

*On 3/31/07, wibrst.python <wibrst.python在tom.com> wrote:
>
>
>
> _______________________________________________
> 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/20070331/abecf13b/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 16:56

jessinio smith jessinio在gmail.com
星期六 三月 31 16:56:39 HKT 2007

ÓÃsplit²»¾ÍÐÐÁËÂð£¿

On 3/31/07, wibrst.python <wibrst.python在tom.com> wrote:
>
>
>
> _______________________________________________
> 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/20070331/93bdddf2/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 16:57

wibrst.python wibrst.python在tom.com
星期六 三月 31 16:57:02 HKT 2007

¾ÍÊÇÊý×ֵıíʾ£¬±ÈÈç 00:41:32£¬Ð»Ð»£¡

jessinio smith дµÀ:
>
> *HH:MM:SS ÊÇʲôÒâ˼£¿
>
> ÊÇÖÐÎĵģ¬»¹ÊÇÓ¢Îĵģ¿£¿
>
> ÊÇÊý×ֵģ¬»¹ÊÇÎÄ×ÖµÄ??
>
> *
> On 3/31/07, *wibrst.python* < wibrst.python在tom.com
> wibrst.python在tom.com>> wrote:
>
>
>
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese在lists.python.cn
>     python-chinese在lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Unsubscribe: send unsubscribe
>     topython-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>     <http://python.cn/mailman/listinfo/python-chinese>
>
>
>
>
> -- 
> ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070331/e1191417/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 17:01

wibrst.python wibrst.python在tom.com
星期六 三月 31 17:01:17 HKT 2007

"HH:MM:SS"->ʱ¼ä´Á
splitÖ®ºó»¹µÃ·ÖÖÓ*60£¬Ð¡Ê±*3600¶Ô°É£¿
ʱ¼ä´Á->"HH:MM:SS"
ÔÙ³ýÒÔ3600£¬60ÕâÑùËã°É£¿

ÕâÑù¿ÉÒÔ£¬²»¹ýÎÒÏëÖªµÀPythonµÄ¿âÀïÓÐûÓÐÏֳɵķ½·¨ÄØ£¿

jessinio smith дµÀ:
> ÓÃsplit²»¾ÍÐÐÁËÂð£¿
>
> On 3/31/07, *wibrst.python* <wibrst.python在tom.com
> wibrst.python在tom.com>> wrote:
>
>
>
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese在lists.python.cn
>     python-chinese在lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Unsubscribe: send unsubscribe
>     topython-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> -- 
> ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070331/391f35ce/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 17:08

jessinio smith jessinio在gmail.com
星期六 三月 31 17:08:25 HKT 2007

split + mktime

²»¹ýmktimeÒªÓÐ9¸ö³ÉÔ±µÄtuple

On 3/31/07, wibrst.python <wibrst.python在tom.com> wrote:
>
>
>
> _______________________________________________
> 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/20070331/82a9c621/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 17:11

jessinio smith jessinio在gmail.com
星期六 三月 31 17:11:41 HKT 2007

²¹È«9¸ö³ÉÔ±¾ÍÐÐÁË¡£ÄãÒªµÄʱ¼ä*´ÁÒ²Ò»¶¨ÒªÖªµÀÈ«²¿ÐÅÏ¢µÄ*

On 3/31/07, jessinio smith <jessinio在gmail.com> wrote:
>
> split + mktime
>
> ²»¹ýmktimeÒªÓÐ9¸ö³ÉÔ±µÄtuple
>
> On 3/31/07, wibrst.python <wibrst.python在tom.com> wrote:
> >
> >
> >
> > _______________________________________________
> > 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/20070331/86735ee7/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 18:15

黄毅 yi.codeplayer在gmail.com
星期六 三月 31 18:15:19 HKT 2007

time.strptime

On 3/31/07, wibrst.python <wibrst.python at tom.com> wrote:
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese




-- 
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070331/b958fcf9/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年03月31日 星期六 20:05

wibrst.python wibrst.python在tom.com
星期六 三月 31 20:05:37 HKT 2007

谢谢各位,俺写了个模块专门解决这问题:

*Python应用:计时器"时:分:秒"字符串与秒数相互转换 * 
<http://blog.chinaunix.net/u/28253/showart.php?id=268786>


黄毅 写道:
> time.strptime
>
> On 3/31/07, *wibrst.python* <wibrst.python在tom.com 
> wibrst.python在tom.com>> wrote:
>
>
>
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese在lists.python.cn
>     python-chinese在lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Unsubscribe: send unsubscribe to  
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> -- 
> http://codeplayer.blogspot.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070331/e16f544b/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号