Created
March 25, 2020 08:54
-
-
Save avinash/e6ceb715f4eb4efee269975edbbb902f 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
#!/usr/bin/env python | |
import datetime | |
base = datetime.datetime(year=2019, month=5, day=11, hour=3, minute=0, second=0) | |
delta = datetime.timedelta(hours=3) | |
start = 1 | |
end = 76 | |
for n in range(start, end + 1): | |
print "mv img_{}.jpg {}.jpg".format(n, base.strftime("%Y-%m-%d-%H%MZ")) | |
base += delta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment