beautypg.com

Functions - type conversion – Metrohm tiamo 1.0 Manual User Manual

Page 70

background image

46

General program functions

Examples

Time(2004;06;02;10;30;25) = 2004-06-02 10:30:25 UTC +2

(depends on the

system time)

Time('CV.Testyear';'CV.Testmonth';'CV.Testday';'CV.TestHour';'CV.TestMin';'CV.T
estSec')

= date complied from the Common variables


Functions - Type conversion

NumberToText

Syntax

y = NumberToText(Number)

Returns the entered number as

Text

.

Parameter

Number

The parameter can either be entered directly as a number or as a Variable
of the type

Number

.

Examples

NumberToText(-55.3) = -55.3

NumberToText('CV.MeanTemp')

= value of the Common variable as

Text

NumberToTime

Syntax

y = NumberToTime(Number)

Returns the entered number as

Date/Time

, with the number being inter-

preted as the number of days since 30 December 1899 at 01 a.m.

Parameter

Number

The parameter can either be entered directly as a number or as a Variable
of the type

Number

.

Examples

NumberToTime(35545.526) = 1997-05-25 14:37:26 UTC+2

(depends on the

system time)

NumberToTime(35780.55) = 1997-12-16 14:12:00 UTC+1

(depends on the

system time)

NumberToTime('CV.TestDate')

= value of the Common variable as

Date/Time

TextToNumber

Syntax

y = TextToNumber(Text)

Returns the entered text as

Number

.