Created
March 2, 2016 12:45
-
-
Save ak1211/fd954c370b4765e675f2 to your computer and use it in GitHub Desktop.
日時フィールドが変だから,後ろの有効な値をとる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def toDateTime (log_datetime): | |
date = (log_datetime.split(' '))[3:] | |
return datetime.datetime.strptime (' '.join (date), "%b %d %H:%M:%S %Z") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment