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

 Syntax:
 lpszModTime = FilModifyTimeGet( lpszPath )
 lpszModTime = FilModifyTimeSet( lpszPath, lpszNewTime )

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

 Returns:
 A character string of length 8.

 The CA-Clipper names for these functions are:
 FilModTmeGet() / FilModTmeSet()

 Description:
 FilModifyTimeGet() returns the time of day that the file was last
 modified. lpszPath must be the full path including the volume name and
 the name of the file itself, e.g. SYS:DATA\KATIE.DOC.

 FilModifyTimeSet() sets the last modified time for the file specified by
 lpszPath to lpszNewTime and returns the previous value.

 Returns an empty string if an error occurs.

 Example:
 // To find the time of day that SYS:DATA\KATIE.DOC was last modified:

 lpszModTime = FilModifyTimeGet( "SYS:DATA\KATIE.DOC" )
 if ( !empty( lpszModTime ) )
    ? "SYS:DATA\KATIE.DOC was last modified at", lpszModTime
 endif

 // To change the last modified time of file SYS:DATA\KATIE.DOC to
 // 12:00:00:

 lpszOldTime = FilModifyTimeSet( "SYS:DATA\KATIE.DOC", "12:00:00" )
 lpszNewTime = FilModifyTimeGet( "SYS:DATA\KATIE.DOC" )
 if ( !empty( lpszNewTime ) )
    ? "SYS:DATA\KATIE.DOC's last modified time was ", lpszOldTime
    ? "SYS:DATA\KATIE.DOC's last modified time is now ", lpszNewTime
 endif

 Notes:
 These functions return the time in the form "HH:MM:SS".

 Appropriate trustee access rights are required to use these functions.

See Also: FilModifyDateGet() / FilModifyDateSet() FilCreateTimeGet() / FilCreateTimeSet()

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