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> dirmodifytimeget() / dirmodifytimeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirModifyTimeGet() / DirModifyTimeSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the last modification time of a directory.

 Syntax:
 lpszTime = DirModifyTimeGet( lpszPath )
 lpszTime = DirModifyTimeSet( lpszPath, lpszNewTime )

 Parameters:
 lpszPath    The full NetWare path name of the directory.
 lpszNewTime The new last modified time.

 Returns:
 A character string of length 8.

 The CA-Clipper names for these functions are:
 DirModTmeGet() / DirModTmeSet()

 Description:
 DirModifyTimeSet() returns the time of day that the directory specified
 by lpszPath was last modified.

 lpszPath must be the full directory path, including the name of the
 directory itself and the volume name. For example, SYS:DATA\KATIE\WP, where
 WP is the directory in question.

 DirModifyTimeSet() sets the modification time of the specified directory
 lpszPath to the value specified by lpszNewTime and returns the previous
 modification time.

 Returns an empty string if an error occurs.

 Example:
 // To find the time of day that SYS:DATA\KATIE\WP was last modified:
 lpszModTime = DirModifyTimeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszModTime ) )
    ? "SYS:DATA\KATIE\WP was last modified at", lpszModTime
 endif
 // To change directory SYS:DATA\KATIE\WP's last modified time to
 // 12:00:00:
 lpszOldTime = DirModifyTimeSet( "SYS:DATA\KATIE\WP","12:00:00" )
 lpszNewTime = DirModifyTimeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszNewTime ) )
    ? "SYS:DATA\KATIE\WP's last modified time is now", lpszNewTime
 endif

 Notes:
 The time is returned in the form HH:MM:SS.

 These functions only work with NetWare 386 and appropriate trustee access
 rights are required.

See Also: DirModifyDateGet() / DirModifyDateSet()

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