NWGetFileServerDateAndTime

Returns the network date and time maintained on the specified NetWare server.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Environment

Syntax

  #include <nwserver.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API  NWGetFileServerDateAndTime  ( 
     NWCONN_HANDLE   conn,  
     pnuint8         dateTimeBuffer);
  

Delphi Syntax

  uses calwin32 
   
  Function NWGetFileServerDateAndTime 
    (conn : NWCONN_HANDLE; 
     dateTimeBuffer : pnuint8 
  ) : NWCCODE; 
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
dateTimeBuffer
(OUT) Points to a 7-byte buffer for the network date and time.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

Remarks

Since the date and time are not automatically synchronized across an internetwork, dates and times may differ among servers.

The system time clock is a 7-byte value defined in the following format:

Byte

Value

Range

0

Year

80 through 179

1

Month

1 through 12

2

Day

1 through 31

3

Hour

0 through 23 (0 = 12 midnight; 23 = 11 PM)

4

Minute

0 through 59

5

Second

0 through 59

6

Day of Week

0 through 6, 0=Sunday

NOTE:The year value corresponds to the specified years:

  • 80-99 1980-1999
  • 100-179 2000-2079

NCP Calls