diff options
author | Leonard Kugis <leonard@kug.is> | 2023-04-11 03:16:38 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2023-04-11 03:16:38 +0200 |
commit | 38c94098f416d48b9006d7e7f8556c8543a19513 (patch) | |
tree | c6ff59d8b09dcdb1043657c85f746ebeb17c7549 /util.py | |
parent | bc01c50fae338dcaa28c9ca7ca3ac44e29046c7a (diff) |
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,10 +34,10 @@ def rename_sha256(fpath): return rename_hash(fpath, hashlib.sha256()) def rename_cdate(fpath): - return rename(fpath, datetime.datetime.fromtimestamp(os.path.getctime(fpath)).strftime("%Y-%m-%d_%H:%M:%S:%f")) + return rename(fpath, datetime.datetime.fromtimestamp(os.path.getctime(fpath)).strftime("%Y-%m-%d-%H-%M-%S-%f")) def rename_mdate(fpath): - return rename(fpath, datetime.datetime.fromtimestamp(os.path.getmtime(fpath)).strftime("%Y-%m-%d_%H:%M:%S:%f")) + return rename(fpath, datetime.datetime.fromtimestamp(os.path.getmtime(fpath)).strftime("%Y-%m-%d-%H-%M-%S-%f")) def image_resize(image, width = None, height = None, inter = cv2.INTER_AREA): # initialize the dimensions of the image to be resized and |