Skip to content

Commit

Permalink
import datetime as dt
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 20, 2024
1 parent bc8e358 commit b5a9edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rename_activities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
import argparse
import csv
import datetime
import datetime as dt
import os
import pathlib
import sys
Expand All @@ -28,7 +28,7 @@ def convert_date_string(input_string):
# May 22, 2010, 7:39:29 PM
# ->
# 20100522-193929
new_date = datetime.datetime.strptime(input_string, "%b %d, %Y, %I:%M:%S %p")
new_date = dt.datetime.strptime(input_string, "%b %d, %Y, %I:%M:%S %p")
new_date = new_date.isoformat()
new_date = new_date.replace("-", "")
new_date = new_date.replace(":", "")
Expand Down

0 comments on commit b5a9edc

Please sign in to comment.