summaryrefslogtreecommitdiff
path: root/django/factwise-python/factwise_submission/plannerapp/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/factwise-python/factwise_submission/plannerapp/utils.py')
-rw-r--r--django/factwise-python/factwise_submission/plannerapp/utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/django/factwise-python/factwise_submission/plannerapp/utils.py b/django/factwise-python/factwise_submission/plannerapp/utils.py
new file mode 100644
index 0000000..af1d1cf
--- /dev/null
+++ b/django/factwise-python/factwise_submission/plannerapp/utils.py
@@ -0,0 +1,9 @@
+import uuid
+from datetime import datetime
+
+def now_iso():
+ return datetime.utcnow().isoformat() + "Z"
+
+def new_id():
+ return str(uuid.uuid4())[:8]
+