Skip to content

Commit

Permalink
🎨Utilized TIME_FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Jan 23, 2024
1 parent d840f51 commit 19e7d48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/toolkit/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import inspect
import hashlib
import operator
import importlib
import unicodedata

import numpy as np
Expand Down Expand Up @@ -257,7 +256,7 @@ def timestamp(simplify: bool = False, ensure_different: bool = False) -> str:
if simplify:
return now.strftime("%Y-%m-%d")
if ensure_different:
return now.strftime("%Y-%m-%d_%H-%M-%S-%f")
return now.strftime(TIME_FORMAT)
return now.strftime("%Y-%m-%d_%H-%M-%S")


Expand Down

0 comments on commit 19e7d48

Please sign in to comment.