cs_lang:python:things-to-know:date-and-time
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
cs_lang:python:things-to-know:date-and-time [2011/06/17 07:53] – created cedric | cs_lang:python:things-to-know:date-and-time [2011/06/17 07:53] – cedric | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | <code python> |
import time | import time | ||
Line 8: | Line 8: | ||
epoch = int(time.mktime(time.strptime(date_time, | epoch = int(time.mktime(time.strptime(date_time, | ||
print epoch | print epoch | ||
- | </python> | + | </code> |
cs_lang/python/things-to-know/date-and-time.txt · Last modified: 2012/06/20 11:14 by cedric