GetTimeStamp


The GetTimeStamp method retrieves date and time that file was created, last modified and last accessed.
C++
long GetTimeStamp(
  SYSTEMTIME *CreationDate,                     // creation date
  SYSTEMTIME *ModificationDate,                 // modification date
  SYSTEMTIME *LastAccessDate                    // last access date
);
BASIC
GetTimeStamp(
  Optional CreationDate As Variant,             // creation date
  Optional ModificationDate As Variant,         // modification date
  Optional LastAccessDate As Variant            // last access date
) As Long

Parameters

CreationDate
C++
Pointer to variable that receives date of file creation.
This parameter can be NULL if creation date is not required.
BASIC
Variant that receives creation date.
Variant must be of Date data type; it must not be an array.
Variant can be uninitialized; in such case it is converted to Date.
This parameter can be omitted if creation date is not required.
ModificationDate
C++
Pointer to variable that receives date of last modification.
This parameter can be NULL if modification date is not required.
BASIC
Variant that receives date of last modification.
Variant must be of Date data type; it must not be an array.
Variant can be uninitialized - in such case it is converted to Date.
This parameter can be omitted if modification date is not required.
LastAccessDate
C++
Pointer to variable that receives date of last access.
This parameter can be NULL if access date is not required.
BASIC
Variant that receives date of last access.
Variant must be of Date data type; it must not be an array.
Variant can be uninitialized - in such case it is converted to Date.
This parameter can be omitted if access date is not required.

Return Values

If the method succeeds, the return value is 0.
If the method fails, the return value is failure code and error code is set. Call GetError to get error code.

Remarks

All times are adjusted to local time using current settings for the time zone and daylight saving time.

See Also

GetName, GetFile