2008/02/29
strptime
by
菊地時夫
—
posted at
2008-02-29 09:19
last modified
2008-02-29 09:19
Python の time.strptime (string parse time) は、うるう年に注意。
- こんなコードがあったら、:
mytime = time.strptime(x, '%b %d') mytime = (time.localtime()[0],) + (mytime[1:])
- こう変えておこう:
x = x + ' %d' % time.localtime()[0] mytime = time.strptime(x, '%b %d %Y')
- Category(s)
- なんでも
- The URL to Trackback this entry is:
- http://sango.lab.tkikuchi.net/Members/tkikuchi/30e130e2/strptime/tbping