summaryrefslogtreecommitdiff
path: root/domestic/utility/get_filename.py
diff options
context:
space:
mode:
Diffstat (limited to 'domestic/utility/get_filename.py')
-rw-r--r--domestic/utility/get_filename.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/domestic/utility/get_filename.py b/domestic/utility/get_filename.py
new file mode 100644
index 0000000..ce70c0a
--- /dev/null
+++ b/domestic/utility/get_filename.py
@@ -0,0 +1,5 @@
+import time
+
+
+def get_filename(file_type):
+ return time.strftime(f'%Y-%m-%d (%H-%M-%S).{file_type}') \ No newline at end of file