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_seconds() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_SECONDS()


Returns

Current system time (seconds since 12 midnight).


Description

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

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

Unlike SECONDS(), which returns seconds and tenths of seconds, 
N_SECONDS() returns only whole seconds.


Examples

difference = N_SECONDS() - INT(SECONDS())
DO CASE
CASE difference > 0
   ? 'Warning, local station's clock is ahead of server's by:', ;
        difference
CASE difference < 0
   ? 'Warning, local station's clock is behind server's by:', ;
        -difference
OTHERWISE
   ? 'Station and server clocks are synchronized'
ENDCASE



See Also: N_DATE() N_TIME()

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