fsFileGetCreateTime (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


This function will return the file creation time as a LINSEC value.

 

 

Input:                

name : STRING

The name of the file.

 

Returns: DINT

The time of creation for the file in seconds since 1980-1-1 00:00:00 (LINSEC).

 

Declaration:

FUNCTION fsFileGetCreateTime : DINT;
VAR_INPUT
  name : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
VAR
  a : DINT;
END_VAR;
 
BEGIN
  ...
  // Get the time of creation as number of seconds since 1980-1-1 00:00:00
  a := fsFileGetCreateTime(name := "test.txt");
  ...
END;
 
END_PROGRAM;