CFindFile.CreationSerialTimemethod
Returns the time the file was created as a Date Serial.
Syntax
FUNCTION CreationSerialTime () AS DOUBLE
Description
Returns the file's creation date and time as Date Serial. The result can be formated using FreeBasic's Format function.
Example
#INCLUDE ONCE "AfxNova/CFindFile.inc" DIM pFinder AS CFindFile DIM wszPath AS WSTRING * 260 = "C:\Programs\WinFBX\AfxNova\*.bi" IF pFinder.FindFile(wszPath) = S_OK THEN DO
PRINT pFinder.FilePath
PRINT Format(pFinder.CreationSerialTime, "yyyy-mm-dd hh:mm AM/PM")
IF pFinder.FindNext = 0 THEN EXIT DO
LOOP END IF pFinder.Close
Reference
- Include file
CFindFile.inc - Defined in AfxNova/CFindFile.inc:491
- Documented in File Management/CFindFile Class.md
- Topic: CFindFile Class