Skip to content

Commit 58aa558

Browse files
committed
update: init utility
1 parent 75c3387 commit 58aa558

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ns_vfs/common/utility.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from datetime import datetime
2+
3+
4+
def get_filename_with_datetime(base_name):
5+
current_time = datetime.now().strftime("%Y%m%d_%H%M%S")
6+
return f"{base_name}_{current_time}.png"

0 commit comments

Comments
 (0)