Einzelnen Beitrag anzeigen
Alt 13.10.2012, 10:02   #163
leecher
Moderator
GETTIME

E r g e b n i s / R e s u l t

Give the title of one of the time zones

B e s c h r e i b u n g / D e s c r i p t i o n

When <desk:F8> is displayed, three time zones are shown, complete with
their titles.

GETTIME returns one of these titles. The developer can record this
value or can search for a time zone.

S y n t a x

Code:
string = call('GETTIME' , timezone)
P a r a m e t e r

timezone - is a number in the range 0 - 2.

0 = Current Time time zone
1 = Time Zone 1
2 = Time Zone 2

R e t u r n s

A string containing the time zone title.

B e i s p i e l / E x a m p l e

Code:
attach 'TIME'
put call ('GETTIME' , 0)   ! prints 'Current Time' 
put call ('GETTIME' , 1)   ! prints 'MUNICH' 
put call ('GETTIME' , 2)   ! prints 'LONDON'
detach 'TIME'
Q u e r v e r w e i s / C r o s s R e f e r e n c e
SETTIME
Angehängte Dateien
Dateityp: oac TIME.OAC‎ (16.0 KB, 2x aufgerufen)
leecher ist offline   Mit Zitat antworten