diff options
author | Vincent Driessen <vincent@3rdcloud.com> | 2012-02-03 19:16:00 +0100 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2012-02-03 19:19:14 +0100 |
commit | 8c485c2c6d8ca251492e90ac8c7337deb70b21fd (patch) | |
tree | 9c291c640776c0f8df7d3c1f5860684956d1ed3f | |
parent | 2960eb87b59c93b830e2357ca282aecf4a45f6fe (diff) | |
download | times-8c485c2c6d8ca251492e90ac8c7337deb70b21fd.tar.gz |
The alias to datetime.datetime.utcnow() suffices, no need to create an
extra layer on the call stack.
-rw-r--r-- | times/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/times/__init__.py b/times/__init__.py index 11b8924..2bdfd87 100644 --- a/times/__init__.py +++ b/times/__init__.py @@ -8,10 +8,6 @@ __author__ = 'Vincent Driessen <vincent@3rdcloud.com>' __version__ = VERSION -def now(*args, **kw): - return datetime.datetime.utcnow(*args, **kw) - - def to_universal(local_dt, timezone=None): """Converts the given local datetime or UNIX timestamp to a universal datetime. @@ -95,4 +91,4 @@ def format(dt, timezone, fmt=None): return to_local(dt, timezone).strftime(fmt) -now.__doc__ = datetime.datetime.utcnow.__doc__ +now = datetime.datetime.utcnow |