major rework
using influxdb structure independed of nicos cache
This commit is contained in:
8
base.py
8
base.py
@ -6,9 +6,11 @@ ONEYEAR = 366 * 24 * 3600
|
||||
|
||||
|
||||
def get_abs_time(times):
|
||||
"""
|
||||
Gets the absolute times for the given potential relative times. If a given timestamp is less than
|
||||
one year, then the value is relative and converted into an absolute timestamp
|
||||
"""Gets the absolute times for the given potential relative times.
|
||||
|
||||
If a given timestamp is less than one year, then the value is
|
||||
relative (to now, rounded up to a full second) and converted
|
||||
into an absolute timestamp
|
||||
|
||||
Parameters :
|
||||
times([(float)]) : an array of unix timestamps or relative duration (< 1 year) as floats
|
||||
|
Reference in New Issue
Block a user