ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 26 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / WLanguage functions / Standard functions / Mobile Device (Pocket PC) access functions
  • Managing the errors
  • Creation time, modification time or access time
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or modifies the different times associated with a file (creation, modification or access). This file is found on the Mobile Device (Pocket PC) connected to the current computer.
Remarks:
  • ceFileTime can be used only if a connection is established between the current computer and the Mobile device (ceConnect).
  • This function is available in 64-bit mode.
Example
// Find out the creation time of "\MyFiles\File.txt"
// found on the Mobile device connected to the current computer
ResTime = ceFileTime("MyFiles\File.txt", "", fCreation)
// Display the time
Info("This file was created at: " + TimeToString(ResTime))
// Modify the time of the last access to "\MyFiles\File.txt"
// found on the Mobile device connected to the current computer
ceFileTime("\MyFiles\File.txt", "174327", fAccess)
Syntax
<Result> = ceFileTime(<File path> [, <New time> [, <Type of time>]])
<Result>: Character string
  • Time associated with the file (in HHMMSS format),
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<File path>: Character string (with quotes)
Name and full path of the file to use. This file is found on the Mobile Device (Pocket PC) connected to the current computer.
<New time>: Optional character string (with quotes)
  • Modifying a time: new time for the file (in "HHMMSS" format).
  • Reading a time: empty string ("").
<Type of time>: Optional Integer constant
Indicates the time to use:
fAccessTime of last access to the file.
fCreationTime of file creation.
fModify
(Default value)
Time of last modification made to the file.
Remarks

Managing the errors

ceFileTime generates an error in the following cases:
  • the specified file is opened or the file is locked by another application,
  • the specified file does not exist,
  • the name of the specified file is invalid,
  • the format of <New time> is incorrect.
  • ...

Creation time, modification time or access time

  • In some cases, the creation time, the modification time and the access time of a file are identical.
  • In some cases, the modification time of a file does not correspond to the expected value. For example, in Windows CE 5.0, the resolution of the modification date is 2 seconds: the modification second is always even.

Equivalence

ceFileTime and fTime have equivalent operating modes.
The only difference is:
  • ceFileTime handles a file or a directory found on the Mobile Device (Pocket PC) from a WINDEV application.
  • fTime handles a file or a directory found on the Mobile Device (Pocket PC) only from a WINDEV Mobile application.
Component: wd260ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/26/2021

Send a report | Local help