summaryrefslogtreecommitdiff
path: root/timestamp.py
diff options
context:
space:
mode:
Diffstat (limited to 'timestamp.py')
-rw-r--r--timestamp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/timestamp.py b/timestamp.py
new file mode 100644
index 0000000..b0a535c
--- /dev/null
+++ b/timestamp.py
@@ -0,0 +1,13 @@
+# coding: utf-8
+
+from __future__ import print_function, absolute_import, division, unicode_literals
+
+import datetime
+
+
+class TimeStamp(datetime.datetime):
+ def __init__(self, *args, **kw):
+ self._yaml = dict(t=False, tz=None, delta=0)
+
+ def __new__(cls, *args, **kw): # datetime is immutable
+ return datetime.datetime.__new__(cls, *args, **kw)