source:
xmlrpcplugin/0.10/tracrpc/util.py
| Last change on this file was 1735, checked in by , 17 years ago | |
|---|---|
| File size: 224 bytes | |
| Rev | Line | |
|---|---|---|
| [1188] | 1 | import time |
| 2 | ||
| 3 | def to_timestamp(datetime): | |
| 4 | """ Convert xmlrpclib.DateTime string representation to UNIX timestamp. """ | |
| [1735] | 5 | return time.mktime(time.strptime('%s UTC' % datetime.value, '%Y%m%dT%H:%M:%S %Z')) - time.timezone |
Note: See TracBrowser
for help on using the repository browser.
