Last active
May 29, 2021 10:29
-
-
Save blaylockbk/1654c4616bd294a0fd9bc1e2ce416766 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from datetime import datetime | |
dates = ['01/01/2016 04:50','01/01/2016 05:50','01/01/2016 06:50','01/01/2016 07:50'] | |
DATE = [datetime.strptime(x,'%m/%d/%Y %H:%M') for x in dates] |
yes, from datetime import datetime
. I updated the gist.
this one works well, thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you use imports here?