Filetime - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

FileTime

Name:
FileTime
Syntax:
STRING FileTime(FILEINFO Info);
Description:
Returns a string containing the current system time.
Parameters:
INFO – structure containing the information about a found file (refer to "FindFirst"
on page
149
for description).
Return Value:
The return string contains the time in HH:MM:SS format, in 24-hour time. If a value
is not two digits wide, it is padded with leading zeros.
Example:
(Refer to "File Functions Overview"on page 116)
STRING TheTime$[100];
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst("*.dat", FileInfo );
WHILE (Found = 0)
{
TheTime$=TIME();
PRINT ( "File time = %s\n", TheTime$);
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( "Error in closing find operation\n" );
EndFileOperations();
An example output from this would be "File time = 14:25:32".
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only
Software
®
SIMPL+
145

Advertisement

Table of Contents
loading

Table of Contents