mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-04-13 22:03:06 +00:00
minor changes
This commit is contained in:
parent
866e765c1e
commit
3564d2043f
@ -18,17 +18,15 @@ class Utc(tzinfo):
|
||||
def dst(self, dt):
|
||||
return ZERO
|
||||
|
||||
|
||||
UTC = Utc()
|
||||
|
||||
|
||||
#del Utc
|
||||
|
||||
|
||||
def datetime_now():
|
||||
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.
|
||||
@note: if no offset is provided or offset == 0, this is equivalent to datetime_now
|
||||
@param offset: seconds from now
|
||||
|
Loading…
x
Reference in New Issue
Block a user