CWYAlpha

Just another WordPress.com site

Thought this was cool: Python时间格式化时间戳毫秒

leave a comment »


格式化当前时间:

import datetime

datetime.datetime.now().strftime(‘%Y-%m-%d %H:%M:%S’)

当前时间戳:

import time

time.time()

Related posts:

  1. Python logging 标准配置
  2. 使用Python POST任意的HTTP数据以及使用Cookie
  3. 使用ServletContextListener在服务器启动和关闭时创建和关闭缓存
  4. 如何使用ServletContextListener
  5. Web应用中基于组的用户权限管理在Spring框架下的实现

你现在看的文章是:Python时间格式化时间戳毫秒


0

   

0

IT 牛人博客聚合网站(udpwork.com) 聚合
|
评论: 0
|
10000+ 本编程/Linux PDF/CHM 电子书下载

from IT牛人博客聚合网站: http://www.udpwork.com/item/7584.html

Written by cwyalpha

六月 27, 2012 在 10:53 上午

发表在 Uncategorized

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: