NWGetFileServerUTCTime(3nw)


NWGetFileServerUTCTime -- returns the Coordinated Universal Time (UTC) setting of a server

Synopsis

   #include <nwnet.h> 
   or 
   #include <nwdsmisc.h> 
   

nint N_API NWGetFileServerUTCTime (NWCONN_HANDLE conn, pnuint32 time);

Description

The parameters are as follows:

conn
(IN) Specifies the connection handle to the server whose time needs to be retrieved.

time
(OUT) Points to the time setting (in UTC time) of the server.

Return values

0x0000
SUCCESSFUL

0xFD6D
ERR_TIME_NOT_SYNCHRONIZED

Negative value
Negative values indicate errors. For errors returned by Directory Services, see ``Directory Services OS Errors'' (-001 to -255), ``Directory Services Client Library Errors'' (-301 to -399), or ``Directory Services Agent in the Server Errors'' (-601 to -699).

Notices

NWGetFileServerUTCTime will determine the time setting on remote and local servers. (The time function only returns the time setting for local servers.)

The time placed in the location pointed to by time represents the time in seconds since January 1, 1970 (Coordinated Universal Time).

Services

Directory

NCP calls

0x2222 114 1
Get UTC Time

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.