summaryrefslogtreecommitdiff
path: root/timestamp.py
blob: b0a535cd21e544f221cc8d71174742a954a5f668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)