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

 Syntax:
 lpszModTime = FilModTmeGet( lpszPath )
 lpszModTime = FilModTmeSet( 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.

 Description:
 FilModTmeGet() 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.

 FilModTmeSet() 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 = FilModTmeGet( "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 = FilModTmeSet( "SYS:DATA\KATIE.DOC", "12:00:00" )
 lpszNewTime = FilModTmeGet( "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: FilModDteGet() / FilModDteSet() FilCreTmeGet() / FilCreTmeSet()

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