| 赞 | 1 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2023-11-29 |
| 在线时间 | 2271 小时 |
万兽
- 梦石
- 0
- 星屑
- 602
- 在线时间
- 2271 小时
- 注册时间
- 2006-11-4
- 回帖
- 4701

|
发表于 2013-8-5 17:56:20
|
显示全部楼层
t = Time.now #将时间代入变量t
t.strftime("%Y") 为获取年
t.strftime("%m")为获取月
t.strftime("%d")日
t.strftime("%H")时
t.strftime("%M")分
t.strftime("%S")秒
具体查看F1的时间类 |
|