Functions - date/time – Metrohm tiamo 1.3 Manual User Manual
Page 72
46
General program functions
Examples
Round(-55.5259) = -56
Round('CV.MeanTemp')
= rounded value of the Common variable
Sign
Syntax
y = Sign(Number)
Returns the sign of the entered number:
1
for a positive number,
-1
for a
negative number.
Parameter
Number
The parameter can either be entered directly as a number or as a Variable
of the type
Number
. If the parameter does not correspond to the selected
type then it will be automatically converted to it (see Type conversion
"TextToNumber"). If this is not possible then "
invalid
" will be returned as the
result of this operation.
Examples
Sign(-55.3) = -1
Sign(26.115) = 1
Sign('CV.MeanTemp')
= sign of the value of the Common variable
Functions - Date/Time
Time()
Syntax
y = Time()
Returns the current date and current time.
Parameter
none
Return value
Current date and current time in the format
yyyy-mm-dd hh:mm:ss UTC ±xx
Note
UTC = Universal Time Coordinated: reference time for the different time zones
on the earth. MET (Mean European Time) equals UTC plus 1 hour, in the sum-
mer time UTC plus 2 hours.
Time(Date)
Syntax
y = Time(year; month; day)
Returns the entered numbers in the format
Date/Time
.