lims.interface.function form function_form lims.interface.function tree function_list Interface Functions lims.interface.function STR value Returns the value as a string. VAR notebook_line, variable Obtains the value of a given variable, setted for the analysis, product type, matrix and method indicated. CONSTANT name, parameter1=None, parameter2=None, parameter3=None, value=None Obtains the value of the constant defined for the given parameters. TIMEDIF time_1, time_2,uom=False,delta=False Gets the diff between time_1 and time_2. If time 1 is lower than time 2, None is returned. If uom [H,M,S,MS] is specified, a Float representing the the conversion from the delta to the required uom. will be returned. If delta is true and uom is false, a timedelta object is returned. TOTIME value[float], uom[H,M,S,MS] Convert float value to time object, using the provided uom. DATEADD base_date[date,datetime], value[float,int], uom[MO,W,D,H,M,S] Adds value to the base date, considering the unit of measure. Negative numbers are allowed. If a float month it`s provided, will be treated as int. DATEDIFF date_1[date], date_2[date], uom[D,W,MO,W], delta=False Return Diff[int] bewtween date_1 and date_2, expressed in uom. If delta=true, a timedelta object is returned. MAXDATE {dates} [list of date or datetimes] Returns max date/datetime from {dates} MINDATE {dates} [list of date or datetimes] Returns min date/datetime from {dates} SCIENTIFIC_NOTATION value, decimals=2 Returns the given number in scientific notation