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

 Syntax:
 lpszModDate = FilModifyDateGet( lpszPath )
 lpszModDate = FilModifyDateSet( lpszPath, lpszNewDate )

 Parameters:
 lpszPath    The full NetWare directory path of the file.
 lpszNewDate The new last modified date.

 Returns:
 A character string of length 8 (see Notes).

 The CA-Clipper names for these functions are:
 FilModDteGet() / FilModDteSet()

 Description:
 FilModifyDateGet() returns the date that the file specified by
 lpszPath was last modified. lpszPath must be the full directory path,
 including the volume name and the name of the file, e.g.
 SYS:DATA\KATIE.DOC.

 FilModifyDateSet() sets the last modify date of the file specified by
 lpszPath to lpszNewDate and returns the previous modification date.
 Returns an empty string if an error occurs.

 Example:
 // To find the date on which SYS:DATA\KATIE.DOC was last modified:

 lpszModDate = FilModifyDateGet( "SYS:DATA\KATIE.DOC" )
 if ( !empty( lpszModDate ) )
    ? "SYS:DATA\KATIE.DOC was last modified on", lpszModDate
 endif

 // To set the last modified date of file SYS:DATA\KATIE.DOC to today's
 // date:

 lpszOldDate = FilModifyDateSet( "SYS:DATA\KATIE.DOC", date() )
 lpszNewDate = FilModifyDateSet( "SYS:DATA\KATIE.DOC" )
 if ( !empty( lpszNewDate ) )
    ? "SYS:DATA\KATIE.DOC's last modified date was ", lpszOldDate
    ? "SYS:DATA\KATIE.DOC's last modified date is now ", lpszNewDate
 endif

 Notes:
 Appropriate trustee access rights are required to use these
 functions.

 The format of the date values is the ANSI style "yyyymmdd" except with
 CA-Clipper and CA-Visual Objects where the date values are of type DATE.

See Also: FilModifyTimeGet() / FilModifyTimeSet() FilCreateDateGet() / FilCreateDateSet()

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