Storing date and times from a remote serverΒΆ

server_time()

Store date and times from remote server


SYNTAX

server_time(server, date, time, systime, localtime)

Store the date, time and system time from the server specified into the fields supplied.

server

A text string naming the server, optionally ending with a colon.

date

The date.

time

The time.

systime

The unadjusted system time, set to Greenwich Mean Time.

localtime

The system time corrected for the local time zone and for daylight savings.

The date, time, systime and localtime fields should normally have the following logical types:

date

/dn

time

/ts

systime

/td

localtime

/td

However, these logical types are not mandatory.

The function returns 0 if successful, otherwise -1.


NOTES


EXAMPLE

!temp ServDate,"Server date", i4/dn
!temp ServTime,"Server time",u3/ts
!temp ServSysTime,"Server system time",i4/td
!temp ServLocalTime, "Server local time",i4/td

     server_time ("myserver:", ServDate, ServTime, ServSysTime, ServLocalTime)

RELATED TOPICS

Servers

Logical field types