delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/16/12:04:06

Date: Tue, 16 Nov 1999 09:34:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: chongkong AT my-deja DOT com
cc: djgpp AT delorie DOT com
Subject: Re: check when file was last updated?
In-Reply-To: <80qk4u$684$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.991116093344.6671N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 16 Nov 1999 chongkong AT my-deja DOT com wrote:

> is there a function get the time when file is last modified?

If the file is given by its name, you can either call `findfirst' or
the more portable `stat'.  If the file is already open and given by
its handle, you can call `fstat' or the DOS-specific `_dos_getftime'
(but the latter doesn't support 3 different time stamps maintained for
files on Windows 9X).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019