Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_time( [ .t. ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_TIME( [ .T. ] )


Parameter

.T.
Synchronize local station time with server time.


Description

N_TIME() works like the Clipper function TIME(), but uses the server's 
clock. Thus, N_TIME() should return the same value on all stations, 
whereas TIME() might vary from station to station depending on whether 
each station's clock had been synchronized with the server's.

N_TIME(.T.), in addition to returning the server's time, will also set 
the local station's time clock to that of the server's. The local 
station's date is not affected, however. Use N_DATE(.T.) to synchronize 
the date.

If running in stand alone mode, N_TIME() uses the local clock and thus 
returns the same value as TIME().


Examples

// Use server's time to make sure all
// stations display the same time.
PROCEDURE screen_header
  CLEAR
  @ 1, 0 SAY 'Customer Information System'
  @ 1, 72 SAY N_TIME()
RETURN



See Also: N_DATE() N_SECONDS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson