mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-06-01 22:50:55 +00:00
minor changes
This commit is contained in:
parent
866e765c1e
commit
3564d2043f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user