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> fstimeget() / fstimeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSTimeGet() / FSTimeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the file server time.

 Syntax:
 lpszTime = FSTimeGet()
 lpszTime = FSTimeSet( lpszNewTime )

 Parameters:
 lpszNewTime The new file server time.

 Returns:
 A character string of length 8.

 Description:
 FSTimeGet() returns the current file server time.

 FSTimeSet() sets the file server time to lpszNewTime and returns the
 previous time if successful, or an empty string if an error occurs.

 Example:
 // To return the current file server time:
 lpszCurrTime = FSTimeGet()
 if ( !empty( lpszCurrTime ) )
    ? "The current file server time is", lpszCurrTime
 endif
 // To set the file server time to 10:23:00:
 if ( !empty( FSTimeSet( "10:23:00" ) ) )
    ? "The file server time is now 10:23:00"
 endif

 Notes:
 To set the time this function requires that the requesting user has
 console operator rights. The time is returned in the form HH:MM:SS.

See Also: FSDateGet() / FSDateSet() FSWSSync()

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