Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> wslogintimeget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSLoginTimeGet()
------------------------------------------------------------------------------
 Purpose:
 Get the time a user logged in at a workstation.

 Syntax:
 lpszLogTime = WSLoginTimeGet(iConnNum)

 Parameters:
 iConnNum The station number.

 Returns:
 A character string of length 8.

 The CA-Clipper name for this function is:
 WSLogTmeGet()

 Description:
 WSLoginTimeGet() returns the login time of the user currently logged
 into station number iConnNum. If the constant NOVDEFINT is passed for
 iConnNum the current workstation is assumed.

 Returns an empty string if an error occurs.

 Example:
 // To display the login time of the current user:
 lpszCurrTime = WSLoginTimeGet(NOVDEFINT)
 if ( !empty ( lpszCurrTime ) )
    ? "The current user logged in at", lpszCurrTime
 endif
 // To display the login time of the user logged into station number 12:
 lpszCurrTime = WSLoginTimeGet( 12 )
 if ( !empty ( lpszCurrTime ) )
    ? "The current user on station 12 logged in at", lpszCurrTime
 endif

 Notes:
 The time is returned in the format HH:MM:SS. If called for a
 connection where no one is logged in, WSLoginTimeGet() returns the last
 login time at that workstation.

See Also: WSLoginDateGet() FSWSLogin() FSWSLogout()

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