minor changes

This commit is contained in:
Ronald Steinke 2018-01-10 10:17:42 +01:00
parent 866e765c1e
commit 3564d2043f

View File

@ -18,17 +18,15 @@ class Utc(tzinfo):
def dst(self, dt): def dst(self, dt):
return ZERO return ZERO
UTC = Utc() UTC = Utc()
#del Utc
def datetime_now(): def datetime_now():
return datetime.now(UTC) return datetime.now(UTC)
def datetime_the_future(offset = 0): def datetime_the_future(offset=0):
""" Returns a datetime instance <offset> seconds in the future. """ Returns a datetime instance <offset> seconds in the future.
@note: if no offset is provided or offset == 0, this is equivalent to datetime_now @note: if no offset is provided or offset == 0, this is equivalent to datetime_now
@param offset: seconds from now @param offset: seconds from now